Hello,
 
I am using JS223 to execute my python script, lets call it mypython.py
 
Before the engine.exec() Java instruction to execute my script, I want to supply it with a variable, called 'sim'
 
So I call
 
engine.put("sim", new SomeJavaObject())
 
Within the file mypython.py (which is executed) this script has no problem accessing the variable.
 
HOWEVER if I within my python script import another script, this second script has no reference to the 'sim' variable. I.e.
 
mypython.py
 
print 'hello I am in mypython.py'
# this line below works fine
x = sim
import someother.py
 
 
 
someother.py
print 'hello I am in someother.py'
# This line below gives a No Name or whatever error
y = sim
 
How can I fix this? I would really appreciate your suggestions, thank you.
 
Greg