cwconfig.py
changeset 1023 278f997aa257
parent 1015 b5fdad9208f8
child 1039 95d3bfae7a9e
--- a/cwconfig.py	Tue Mar 10 09:39:23 2009 +0100
+++ b/cwconfig.py	Tue Mar 10 09:41:04 2009 +0100
@@ -353,8 +353,9 @@
     @classmethod
     def cls_adjust_sys_path(cls):
         """update python path if necessary"""
-        if not cls.CUBES_DIR in sys.path:
-            sys.path.insert(0, cls.CUBES_DIR)
+        cubes_parent_dir = normpath(join(cls.CUBES_DIR, '..'))
+        if not cubes_parent_dir in sys.path:
+            sys.path.insert(0, cubes_parent_dir)
         try:
             import cubes
             cubes.__path__ = cls.cubes_search_path()