Merge pull request #340 from learnleapfly/dont_delete_py
Fix Module/Name Not Found errors
This commit is contained in:
commit
8d5c8c243f
1 changed files with 1 additions and 0 deletions
|
@ -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=.");
|
||||
|
|
Loading…
Reference in a new issue