So I have a python script that I compile with pyinstaller
to a single file. at the time of running, by default, the script will unbundle the modules in /tmp/
also you can change the default TMPDIR at the time of compilation.
PROBLEM:
As you might know, this is a common security practice that you mount /tmp/
or /var/tmp/
as a noexec
. the problem is that my script can't execute the modules from /tmp/
or /var/tmp/
on some of my client's servers.
QUESTION: I want to change my scripts TMPDIR to somewhere else to prevent this problem, where is the standard location for something like this?