PYTHONPATH

Narayan Desai desai at mcs.anl.gov
Thu Jul 26 12:46:45 EDT 2001


Hi. I have tried to set PYTHONPATH from inside of an already executing
program and it reliably fails, ie

import os
os.environ["PYTHONPATH"]="/path"
import module_located_in_path

fails, while if I set this variable outside of the script in the
parent environment it works as expected. Is this not allowed? Am I
doing this wrong? Is there an alternative way to achieve the same
effect? thanks..
 -nld



More information about the Python-list mailing list