Hi,
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?
Thanks for your attention.
--- hooks/hook-encodings.py 2005-12-26 15:31:48.000000000 -0200
+++ hooks-patched/hook-encodings.py 2005-12-26 15:31:33.000000000 -0200
@@ -20,7 +20,12 @@
import os, sys, glob
hiddenimports = []
-for f in glob.glob(os.path.join(sys.prefix, "Lib", "encodings", "*.py")):
+
+if sys.platform == "win32":
+ encodings_dir = sys.prefix, "Lib", "encodings", "*.py"
+else:
+ encodings_dir = sys.prefix, "lib", "python" + sys.version[:3],
"encodings", "*.py"
+for f in glob.glob(os.path.join(*encodings_dir)):
f = os.path.basename(f)
f = os.path.splitext(f)[0]
if f != "__init__":
_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller