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 christian.heimes, giampaolo.rodola, gregory.p.smith, vstinner
Date 2019-01-16.23:54:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547682897.4.0.817753351066.issue35755@roundup.psfhosted.org>
In-reply-to
Content
I wrote attached execv_curdir.py to check if os.execv() tries to find the executable in the current directory if it doesn't contain a directory: yes, it does.

$ python3 execv_curdir.py 
execv() searchs in the current directory

I also wrote attached subprocess_curdir.py which confirms that subprocess runs a program from the current directory if it exists.

$ python3 subprocess_curdir.py 
defpath = :/bin:/usr/bin
subprocess searchs in the current directory

Moreover, the current directory has the priority over /bin and /usr/bin.
History
Date User Action Args
2019-01-16 23:54:59vstinnersetrecipients: + vstinner, gregory.p.smith, giampaolo.rodola, christian.heimes
2019-01-16 23:54:57vstinnersetmessageid: <1547682897.4.0.817753351066.issue35755@roundup.psfhosted.org>
2019-01-16 23:54:57vstinnerlinkissue35755 messages
2019-01-16 23:54:57vstinnercreate