00001 # this starts up the python enviroment 00002 # 00003 # The root dir should point to the top of the python tree 00004 00005 import os, sys 00006 00007 ROOT_DIR = "../../.." 00008 00009 sys.path.insert(0,ROOT_DIR) 00010 sys.path.insert(0,"../..") 00011 00012 from neo_paths import paths 00013 sys.path = paths(ROOT_DIR) + sys.path 00014 00015 # don't put anything above this because the path isn't 00016 # extended yet... 00017 00018 import neo_cgi 00019 try: 00020 # newer versions have an update function that will guaruntee that 00021 # neo_util and neo_cs are also loaded when used with non single interpreter 00022 # versions of PyApache 00023 neo_cgi.update() 00024 except: 00025 pass