Replies: 3 comments 7 replies
-
PyInstaller-built executable doesn't call |
Beta Was this translation helpful? Give feedback.
-
Thanks @bwoodsend - is there a "customized packaging" part of pyinstaller documentation that I could look up? Anyways, a possible idea is: pack winpty.exe and env.exe from MINGW64 in the packaged .exe as resources; they try using subprocess to call the equivalent of |
Beta Was this translation helpful? Give feedback.
-
For the record, I don't think the bug described in the OP is even related to Python; it's a "Windows/timezone thing" - see my comment on stackoverflow. |
Beta Was this translation helpful? Give feedback.
-
I use Python 3 on MINGW64 on Windows 10, and I just discovered this weird bug (unrelated to PyInstaller)
Basically, if I call my
python3
, which is alias forwinpty python3
, I get correct timezone:However, if I escape the aliasing - either by backslash, or by using full path - I get a wrong timezone:
Have no idea how this bug could be solved, but my pyinstaller .exe ends up with the "raw" python, and thus obtains wrong local timezone.
So I thought: it would be an easy workaround, if it was possible to include
winpty.exe
in the zip on the final pytinstaller .exe, and then instruct pyinstaller to have the build .exe callwinpty.exe python3.exe ...
, instead ofpython3.exe ...
, when it needs to call the Python interpreter.Is this possible as some setting in the pyinstaller .spec file?
Beta Was this translation helpful? Give feedback.
All reactions