Can't find files when run from start menu

16 views
Skip to first unread message

Tom Gill

unread,
Sep 3, 2019, 3:57:18 AM9/3/19
to PyInstaller
Hi There,

I have a working .exe file. The python script imports and transfers files in the same directory as the script. This functionality works absolutely fine when the .exe is run by navigating to it on windows explorer and double clicking, or using the run dialog box. However, when the same program in the same location is selected from the Windows 10 start menu, it seems to run from a different location as it is unable to import and export the files as it cannot find them. Furthermore, the error log created by the python script (I redirected stderr) is not placed in the same directory as the program but under SysWow64.

Any Ideas?

Cheers!

Hartmut Goebel

unread,
Sep 7, 2019, 11:56:57 AM9/7/19
to pyins...@googlegroups.com
Am 03.09.19 um 09:36 schrieb Tom Gill:
it seems to run from a different location as it is unable to import and export the files as it cannot find them.

Please read the manual about run-time information.

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: https://www.goe-con.de/blog/really-verifying-lineageos-build-authenticity
Kolumne: https://www.goe-con.de/hartmut-goebel/cissp-gefluester/2010-07-passwoerter-lieben-lernen

0x7B752811BF773B65.asc
Reply all
Reply to author
Forward
0 new messages