Message 339499 - Python tracker

Message339499

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 wis
Recipients larry, wis
Date 2019-04-05.12:40:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554468052.35.0.435218217698.issue36536@roundup.psfhosted.org>
In-reply-to
Content
this algorithm: https://github.com/python/cpython/blob/34ef64fe5947bd7e1b075c785fc1125c4e600cd4/Python/coreconfig.c#L1644

I need a python library that does that to fix this answer
https://stackoverflow.com/a/55413882/4178053
I need to get the correct path of the script from the commandline of the python process.

I searched for libraries or implementations and couldn't find one, can someone help me? I can't read C.
History
Date User Action Args
2019-04-05 12:40:52wissetrecipients: + wis, larry
2019-04-05 12:40:52wissetmessageid: <1554468052.35.0.435218217698.issue36536@roundup.psfhosted.org>
2019-04-05 12:40:52wislinkissue36536 messages
2019-04-05 12:40:52wiscreate