This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients lukasz.langa, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2019-09-30.19:46:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569872793.07.0.76983950756.issue38322@roundup.psfhosted.org>
In-reply-to
Content
> The bug was probably exposed due to a change in path initialization (there's been a few changes here recently ;) ) that stopped normalising prefix. You can see that sys.executable in your dumped path has additional "." in the path, and that's never been the case before - they're always cleaned up earlier than that.

Yeah, I had to modify a lot of "path config" code to fix many bugs (regressions compared to Python 3.7). I also added the first tests on the "path configuration" in test_embed.

I checked why sys.executable is not normalized in the the "appx build". PC\python_uwp.cpp calls set_process_name() which sets PyConfig.executable and the path is not normalized. If PyConfig.executable is set explicitly, the path is left unchanged: PyConfig has the highest priority.

Should the executable path be normalized in this case?

--

I looked at Python 3.6 (the version before I started to rework the Python initialization). But there is no python_uwp.cpp in this version.

In Python 3.7, python_uwp.cpp calls set_process_name() which calls _Py_SetProgramFullPath(). But config_init_path_config() seems to ignore the _Py_SetProgramFullPath() call in Python 3.7.
History
Date User Action Args
2019-09-30 19:46:33vstinnersetrecipients: + vstinner, paul.moore, tim.golden, lukasz.langa, zach.ware, steve.dower
2019-09-30 19:46:33vstinnersetmessageid: <1569872793.07.0.76983950756.issue38322@roundup.psfhosted.org>
2019-09-30 19:46:33vstinnerlinkissue38322 messages
2019-09-30 19:46:32vstinnercreate