You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that Python still uses the Windows registry to initialize sys.path, when the -E option is used.
From my understanding, this option is mostly used by programs that are running an embedded version of python, and don't want it to be affected by global installations. Ignoring the registry, along with environment variables, seems to be the correct behavior in this case.
I'm 99% satisfied that this change is the right approach (rather than adding a new option), but we'll have to wait to hear from beta feedback I think.
My main concern is users who pass -E on the command line to avoid environment variables, but are relying on a Python install and not an embedded version. But for a regular install it should still find all the (site) libraries, so I think it'll be fine in basically every case.