Is there a way to import the name (or the path) of the random-generated temp folder?
I know about --runtime-tmpdir
which only defines the base path, but a random-named folder will still be created in that temp dir.
I see two (hacky) workarounds:
- scan the temp folder and look for a folder that starts with "_MEI"
- have a (uncompiled) script in the package that can be called from main.py and tell its location
But, whats the proper way of doing this? Thanks
question from:https://stackoverflow.com/questions/65917645/pyinstaller-how-to-get-the-name-of-the-random-generated-temp-folder