◐ Shell
clean mode source ↗

Message 172468 - Python tracker

Try prefixing "doesnotexist" with the same dirname as sys.executable
(i.e. `os.path.join(os.path.dirname(sys.executable), "doesnotexist")`).

Python under Unix uses its own path to determine where the standard library is, and it does so by inspecting argv[0].