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 snaury
Recipients
Date 2006-10-13.00:57:39
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2007-08-23 15:55:01adminlinkissue1576313 messages
2007-08-23 15:55:01admincreate