
Nick Timkovich wrote:
Are you familiar with the -I option for "isolated mode"?
https://docs.python.org/3/using/cmdline.html#id2 -I Run Python in isolated mode. This also implies -E and -s. In isolated mode sys.path contains neither the script’s directory nor the user’s site-packages directory. All PYTHON* environment variables are ignored, too. Further restrictions may be imposed to prevent the user from injecting malicious code. New in version 3.4.
Oooh... Can you provide some examples on the use of -I?
I try to use along with -m (`python -I -m a.b`) and get this error: "python: Error while finding module specification for 'a.b' (ModuleNotFoundError: No module named 'a')".
On the other hand `python -m a.b -I` just passed -I as a script's CLI argument.
Of course, I get the expected results if run `python -I` on terminal.