Steve Dower <steve.do...@python.org> added the comment:

I don't think anything has been agreed upon.

Currently, the launched program name is used for some things other than setting 
sys.executable, and I believe it should continue to be used for those. But 
there are also needs for overriding sys.executable to be something other than 
the current process (e.g. a launcher that simply loads Python into its own 
process, but needs a different process to be used for multiprocessing support).

Victor has been looking at the initialization process, so I'm not sure if 
something has already changed here yet. I'd be keen to see the getpath part of 
initialization be written in (frozen or limited) Python code that can be easily 
overridden by embedders to initialize all of these members however they like. 
That way everyone can equally lie about argv0/GetModuleFullPath and 
sys.prefix/sys.executable/etc.

Until we get there, we may just need a couple more configuration fields, and 
perhaps some that default to one of the others when unspecified.

----------
nosy: +vstinner

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34725>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to