Message333804
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. |
|
| Date |
User |
Action |
Args |
| 2019-01-16 23:54:59 | vstinner | set | recipients:
+ vstinner, gregory.p.smith, giampaolo.rodola, christian.heimes |
| 2019-01-16 23:54:57 | vstinner | set | messageid: <1547682897.4.0.817753351066.issue35755@roundup.psfhosted.org> |
| 2019-01-16 23:54:57 | vstinner | link | issue35755 messages |
| 2019-01-16 23:54:57 | vstinner | create | |
|