cubicweb/cwconfig.py
changeset 11920 f13799fbcfea
parent 11918 a88101bf9f87
child 11929 fcbd6b251d81
--- a/cubicweb/cwconfig.py	Fri Jan 20 18:17:04 2017 +0100
+++ b/cubicweb/cwconfig.py	Mon Jan 23 15:35:19 2017 +0100
@@ -698,14 +698,8 @@
         """update python path if necessary"""
         from cubicweb import _CubesImporter
         _CubesImporter.install()
-        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()
-        except ImportError:
-            return # cubes dir doesn't exists
+        import cubes
+        cubes.__path__ = cls.cubes_search_path()
 
     @classmethod
     def load_available_configs(cls):