# HG changeset patch # User Sylvain Thénault # Date 1250076645 -7200 # Node ID 998f24dabd0d150c6faa3dc503b1822e0ec8c866 # Parent 4e1ad9d6a3e7be54aa11f270f30d76319afb93b9 compute extrapath, necessary for proper schema module detection when CW_CUBES_PATH is set diff -r 4e1ad9d6a3e7 -r 998f24dabd0d 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 """ 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: