◐ Shell
clean mode source ↗

Message 308311 - Python tracker

"python3 directory" and "python3 testzip.zip" are implemented by calling runpy._run_module_as_main("__main__", set_argv0). Currently, sys.path is modified before calling _run_module_as_main().

Would it be possible to pass an additional path to importlib to import __main__, without modifying sys.path?