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 ncoghlan
Recipients brett.cannon, eric.snow, eryksun, jwilk, ncoghlan, ned.deily, njs, ztane
Date 2018-03-22.12:16:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1521720999.51.0.467229070634.issue33053@psf.upfronthosting.co.za>
In-reply-to
Content
Brett or Eric, any chance one of you could run with this for 3.7b3? I already have a startup refactoring related regression that I'm aiming to have fixed before then.

Thanks to Victor's refactoring work, there's at least a clear interception point now where we can treat the empty string differently depending on whether the command line option was `-c`, `-m`, or not specified at all: https://github.com/python/cpython/blob/master/Python/pathconfig.c#L259

As an initial attempt, I think the necessary fix will be along the lines of checking for 'n == 0 && argc > 1 && wcscmp(argv0, L"-m") == 0', and resolving the current working directory in that case.
History
Date User Action Args
2018-03-22 12:16:39ncoghlansetrecipients: + ncoghlan, brett.cannon, jwilk, ned.deily, njs, eric.snow, eryksun, ztane
2018-03-22 12:16:39ncoghlansetmessageid: <1521720999.51.0.467229070634.issue33053@psf.upfronthosting.co.za>
2018-03-22 12:16:39ncoghlanlinkissue33053 messages
2018-03-22 12:16:39ncoghlancreate