> I've found that if I manually add wx.pth to the directory with the
> exe, the program runs correctly. Is there a way to automate adding
> this file?
The .spec file is a Python file. You can manually copy the file by adding
some code there, or try using a COLLECT() step which is meant to collect
additional files (see the .spec file generated by Makespec.py --onedir to
see how COLLECT is used). Of course, I'm sure you realize that manually
copying that file is just a workaround, not a fix.
> Is this file usually added, and I have a borked install of
> some sort, or is path/version info handled differently altogether?
No, the file should not be copied. The .pth file is meant to setup the
PYTHONPATH at runtime and it's not useful for a packed executable, since
the correct .pyc files are already bundled within the executable and
there's no need for PYTHONPATH games.
It is possible that wxPython has some custom code that looks for a data
file within its installation directory, something like version.dat or
similar. You will need to look within wxPython code and find the spot where
it does this check. If you can point me to the code, we can study it
together and see if there is a way to disable it for generated executables.
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
Great. I think we should try adding a hook to avoid this problem to
happen for other people as well.
Can you try adding a hook file to the "hooks" directory called
"hook-wxversion.py", and make it raise a RuntimeError() exception
describing the problem?
Thanks!