mountDirectories(Module);
Module.FS.chdir(process.cwd());
Object.assign(Module.ENV, process.env);
+ delete Module.ENV.PATH;
},
// Ensure that sys.executable, sys._base_executable, etc point to python.sh
// not to this file. To properly handle symlinks, python.sh needs to compute
// its own path.
- thisProgram: process.argv[thisProgramIndex],
+ thisProgram: process.argv[thisProgramIndex].slice(thisProgram.length),
// After python.sh come the arguments thatthe user passed to python.sh.
arguments: process.argv.slice(thisProgramIndex + 1),
};