Onscreen IDE & dynamic instant update [_v0.5.4_]

So, how do you make this import work :
from panda_function_lib_dir import file1
Python doesn’t automatically walk up if you don’t tell it to. So, I think it’s your responsibility.

This is the way I tried it in dyn1.py :

import os
sys.path.append(os.pardir)
os.chdir(os.path.dirname(sys.argv[0]))
from actor import Actor
print Actor

IDE.py :

IDE_path=os.getcwd()
IDE_lastBrowsePath=os.path.dirname(APP_mainFile)
sys.path.insert(0,IDE_lastBrowsePath)
sys.argv[0]=APP_mainFile

Using “python /path/to/dyn1.py” command or started from the IDE work.
Both return <module ‘actor.Actor’ from ‘…/actor/Actor.pyc’>