-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-37369: Fix initialization of sys members when launched via an app container #14428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hum, I tried the following change:
It works for me:
|
I think I was expecting that updating the prefix would be enough to locate the files under the prefix, but that doesn't work - it still comes up with the wrong Thanks for your other comments! |
Python Path Configuration is a black box. Nobody knows how it works! :-D |
I'm going to give this one more review in the morning with fresh eyes (and coffee), but it should basically match the fix that's gone in for 3.7 already. This one defines more new API rather than just using a hack though (but I still want it in for the next 3.8.0 beta). |
… for linking sys.executable
Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Sorry, @zooba, I could not cleanly backport this to |
… container (pythonGH-14428) sys._base_executable is now always defined on all platforms, and can be overridden through configuration. Also adds test.support.PythonSymlink to encapsulate platform-specific logic for symlinking sys.executable
GH-14467 is a backport of this pull request to the 3.8 branch. |
… container (pythonGH-14428) sys._base_executable is now always defined on all platforms, and can be overridden through configuration. Also adds test.support.PythonSymlink to encapsulate platform-specific logic for symlinking sys.executable
… container (pythonGH-14428) sys._base_executable is now always defined on all platforms, and can be overridden through configuration. Also adds test.support.PythonSymlink to encapsulate platform-specific logic for symlinking sys.executable
https://bugs.python.org/issue37369