I am trying to place my images on a seperate file then my exe BECAUSE I have alot of images and I dont want the person scrolling throw thousands of images just to find the exe
I dont know if I am missing something on my .spec
this is what I did I made a folder for my images and added them and then the exe is outside my image folders but whats happening is its not detecting the images on that folder *am I messing something on my .spec file?
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['tower.py'],
pathex=['C:\\Users\\Habib\\Desktop\\AllMyGames\\TowerD'],
binaries=[],
datas=['C:\Users\Habib\Desktop\AllMyGames\TowerD\dist\image'],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='tower',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False )
it will end up just saying
FAILED TO EXECUTE SCRIPT
from Pyinstaller Placing Images On Separate File Problem? How Do I Fix This?

No comments:
Post a Comment