compute extrapath, necessary for proper schema module detection when CW_CUBES_PATH is set stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 12 Aug 2009 13:30:45 +0200
branchstable
changeset 2782 998f24dabd0d
parent 2781 4e1ad9d6a3e7
child 2785 34dfdbefcfd1
child 2836 b94b9c48111f
compute extrapath, necessary for proper schema module detection when CW_CUBES_PATH is set
schema.py
--- a/schema.py	Tue Aug 11 18:13:33 2009 +0200
+++ b/schema.py	Wed Aug 12 13:30:45 2009 +0200
@@ -874,6 +874,10 @@
         from <directory>
         """
         self.info('loading %s schemas', ', '.join(config.cubes()))
+        self.extrapath = {}
+        for cubesdir in config.cubes_search_path():
+            if cubesdir != config.CUBES_DIR:
+                self.extrapath[cubesdir] = 'cubes'
         if config.apphome:
             path = tuple(reversed([config.apphome] + config.cubes_path()))
         else: