Hi, I am using JCC to run Python inside Java. For unittest, I'd like to set PYTHONPATH environment variable programmatically. I can change env vars inside Java (using http://stackoverflow.com/questions/318239/how-do-i-set-environment-variables-from-java) and System.getenv("PYTHONPATH") shows correct values
However, I am still getting "ImportError: no module named...." If I set PYTHONPATH before starting unittest, it works fine Is it possible what I would like to do? Alternatively, if JCC could execute/eval python string, I could set sys.argv that way Thanks for any pointers! Roman