*The short answer: *
Use PyInstaller --onefile --runtime-tempdir . myscript.py to have the _MEI 
folder placed .

*The long answer:*
You can override where the _MEI folder goes with the --runtime-tmpdir. 
Quoting the docs:

—runtime-tmpdir PATH
Where to extract libraries and support files in onefile-mode. If this 
option is given, the bootloader will ignore any temp-folder location 
defined by the run-time OS. The _MEIxxxxxx- will be created here. Please 
use this option only if you know what you are doing.

The issue with this is that you have to know at build time the path to a 
safe run-time location. And as *safe* usually would imply a user directory 
and a user directory would likely contain their username and therefore 
depend on the machine running it this is effectively impossible. Normally 
you get around this by reading environment variables such as %HOME% but we 
don’t have that kind of control over the bootloader. The fix for this is to 
use a path relative to the application (which we’ll assume is in a folder 
the user has permission for).

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/f88fe6cb-5f0b-4c89-9bc9-74a1d976bfe0n%40googlegroups.com.

Reply via email to