Message51239
By convention when program is executed by searching
path, the first directory to be searched should be the
current directory. However on python this is not true:
1.c:
int main() { return 1; }
test.py:
import os
os.execvp('1', ('1',))
result:
Traceback (most recent call last):
File "C:\1\test.py", line 2, in <module>
os.execvp('1',('1',))
File "D:\Programs\ActiveState\Python25\lib\os.py",
line 348, in execvp
_execvpe(file, args)
File "D:\Programs\ActiveState\Python25\lib\os.py",
line 386, in _execvpe
func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
Attached patch fixes this. |
|
Date |
User |
Action |
Args |
2007-08-23 15:55:01 | admin | link | issue1576313 messages |
2007-08-23 15:55:01 | admin | create | |
|