Merge pull request #340 from learnleapfly/dont_delete_py

Fix Module/Name Not Found errors
This commit is contained in:
Gabriel Pettier 2019-01-17 08:45:57 +01:00 committed by GitHub
commit 8d5c8c243f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,6 +26,7 @@ int main(int argc, char *argv[]) {
// Special environment to prefer .pyo, and don't write bytecode if .py are found
// because the process will not have a write attribute on the device.
putenv("PYTHONOPTIMIZE=2");
putenv("PYTHONDONTWRITEBYTECODE=1");
putenv("PYTHONNOUSERSITE=1");
putenv("PYTHONPATH=.");