check apphome is not None
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Thu, 08 Jan 2009 16:53:41 +0100
changeset 372 a8a975a88368
parent 371 4e849b424aaa
child 373 0c931b2e2a68
check apphome is not None
schema.py
--- a/schema.py	Thu Jan 08 14:36:07 2009 +0100
+++ b/schema.py	Thu Jan 08 16:53:41 2009 +0100
@@ -868,7 +868,10 @@
         from <directory>
         """
         self.info('loading %s schemas', ', '.join(config.cubes()))
-        path = reversed([config.apphome] + config.cubes_path())
+        if config.apphome:
+            path = reversed([config.apphome] + config.cubes_path())
+        else:
+            path = reversed(config.cubes_path())
         return super(CubicWebSchemaLoader, self).load(config, path=path)
 
     def _load_definition_files(self, cubes):