Hi pymolers,

I'm writting a PyMoL plugin where I have to execute an external python script.
I've got a problem: My external script is not executed in the PyMoL plugin.

I've tried to localize the issue with a very small example :

in the PyMol plugin :
args = ("/home/My/", "-a myvarA") #myscirpt is executable,stdout=output_file.fileno(),stderr=subprocess.STDOUT)
 # I also tried with Popen or os.system I have got the same issue...



print "HERE"
import sys
print sys.path
import os

print "HERE2"
os.system("touch /home/My/here.file")


The PyMoL error is:
'import site' failed; use -v for traceback
and import os
ImportError: No module named os

my print HERE is ok, but not my HERE2. And with surprise import sys works and print to me
['/home/My', '/home/My/pymol/./ext/lib/python2.6/', '/home/My/pymol/./ext/lib/python2.6/plat-linux2', '/home/crimee/faure/pymol/./ext/lib/python2.6/lib-tk', '/home/My/pymol/./ext/lib/python2.6/lib-old', '/home/crimee/faure/pymol/./ext/lib/python2.6/lib-dynload']

How can I say to pymol to use my python interpretor and the python of pymol?

Thank you for your help,