Hello,
I was trying to package a script for Windows, but the executable failed to
start. The thing is, the script imports idlelib (IDLE) , and idlelib requires
four of config-*.def files to be in the idlelib directory.
I've tried to make a hook for myself, but didn't manage to get it working. So
far I've come up with something like this:
datas = [('idlelib/*.def', 'idlelib')]
Two questions:
- How do you give the correct paths of the data files, (like 'idlelib/*.def',)
when I'm running PyInstaller from Windows?
- idlelib looks for the config files from os.path.dirname(__file__). Shall I
make a run-time hook (and _MEI packaging) to work around this?
Thank you.
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pyinstaller/-/7z2CPolqhSIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.