J'ai des commandes personnalisées.
# works
subprocess.Popen(['python'], stdout=subprocess.PIPE)
Mais si j'ai mes propres commandes système comme deactivate
, j'obtiens cette erreur
Traceback (most recent call last):
File "runner2.py", line 21, in <module>
main()
File "runner2.py", line 18, in main
subprocess.Popen(['deactivate',], stdout=subprocess.PIPE)
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
Encore moins, je dois l'exécuter sous mon sandbox virtualenv.