I have a python script that needs to invoke another python script in the same directory. I did this:
from subprocess import call
call('somescript.py')
I get the following error
call('somescript.py')
File "/usr/lib/python2.6/subprocess.py", line 480, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
I have the script somescript.py in the same folder though. Am i missing something here. Thanks
.
in yourPATH
? Is somescript.py executable? – Wooble Aug 22 '11 at 19:17import
it? – tMC Aug 22 '11 at 20:10