All pastes #339224 Raw Edit

Untitled

public text v1 · immutable
·published 2007-02-03 23:02 UTC
rendered paste body
# put ourselves in our own activity dir for convenience.
import developactivity
activity_root = os.path.split(developactivity.__file__)[0]
os.chdir(activity_root)
    
#append to sys.path for the activity-local python packages.
sys.path.append(os.path.join(activity_root, 'site-packages'))