My script doesn't want to start.
If I run the command localsite = subprocess.Popen("Localsite.py")
it returns OSError: [WinError 193] %1 is not a valid Win32 application
.
To fix that I can use localsite = subprocess.Popen("Localsite.py", shell=True)
which I'm not actually completely sure what it does. But I could imagine that it would cause issues as the software is going to be distributed and used by regular users without having Python installed.
But how can I avoid using shell=True
?