Carlos Augusto Marcicano <[EMAIL PROTECTED]> wrote:

> I'm having problems with hook-encodings under Debian GNU/Linux. It
> searches for encodings under os.path.join(sys.prefix, "Lib",
> "encodings", "*.py"), which is ok under Windows, but under Linux (at
> least on Debian) they are found at os.path.join(sys.prefix, "lib",
> "python"+sys.version[:3], "encodings", "*.py"). I applied the attached
> patch to it and then it worked correctly. Is this the right way to do
> it, or I misunderstood something?


That's mostly correct, but not enough. Eg. it would break on x86-64 systems
where the base path is /usr/lib64. Also, it won't work for python installed
with custom prefixes (eg. in your homedir). I committed a fix (r205) which
should be more portable. Can you verify it works for you, please?

Thanks for this bugreport!

Giovanni Bajo

_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller

Reply via email to