sh: test: argument expected and os.environ
Iván Cabria
cabria at fta.uva.es
Tue Nov 9 18:23:38 EST 2004
Hi,
thanks to Jeff Epler for the answer.
I have tried his suggestion and I have added two lines after the
first line in the python script:
import os
os.environ['SHELL'] = "/bin/bash"
The first three lines of the python script are now:
#!/usr/bin/env python
import os
os.environ['SHELL'] = "/bin/bash"
I have run the script and I have got the same message error than before:
sh: test: argument expected
Iván
More information about the Python-list
mailing list