Quantcast
Channel: Is there a way to specify the actual location of a file compiled with Pyinstaller (--onefile) and not the temporary _Meixxxx folder - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Garam Lee for Is there a way to specify the actual location of a...

As @johnashu suggestedos.path.dirname(os.path.realpath(__file__))should give you the actual location for your exe file

View Article



Is there a way to specify the actual location of a file compiled with...

Recently I've been working on a Python project that requires human interaction with other files. I compiled it to one file. I tried to get the absolute path to that compiled file. However, everything...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images