我有如下所示的.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文件夹
如何解决任何想法?