sh: test: argument expected and os.environ II

I

Iván Cabria

Hi again,

I have checked that the shell is the bash shell by running again
the script with a print statement. The first four lines are:
#!/usr/local/bin/python
import os
os.environ['SHELL'] = "/bin/bash"
print os.environ['SHELL']

I have also read in Internet, in the following message about a
python script:
http://www.dbforums.com/t549675.html
that the functions that execute a shell command will always invoke the Bourne
shell.

The message error 'sh: test: argument expected' comes from the sentence:
energy = atoms.GetPotentialEnergy()
in the python script I am running. Could be that this sentence is always
invoking somehow the Bourne shell?


Iván
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top