pyinstaller规范文件未将空文件夹读取到.exe

时间:2018-08-27 06:23:45

标签: python pyinstaller

我有如下所示的.spec文件

block_cipher = None
a = Analysis(['demo.py'],
pathex=['x', 'y'],
binaries=[],
datas=[('../_dem', '_dem')],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
         cipher=block_cipher)
exe = EXE(pyz,
      a.scripts,
      a.binaries,
      a.zipfiles,
      a.datas,
      name='Demo',
      debug=False,
      strip=False,
      upx=True,
      console=True )

在_dem文件夹中,我有一些文件夹,如Demo1和Demo2文件夹,但Demo2文件夹为空,因此在我执行.exe时不存在Demo2文件夹

如何解决任何想法?

0 个答案:

没有答案