# HG changeset patch # User Sylvain Thénault # Date 1266402369 -3600 # Node ID 3b7ce7036b19c5982a68ff3f5ffcf656413f9a61 # Parent 7f884ee28519030d17451848e2d61b3238e89612 dont add CUBES_DIR to cubes search path if it doesn't exists diff -r 7f884ee28519 -r 3b7ce7036b19 cwconfig.py --- a/cwconfig.py Wed Feb 17 11:25:46 2010 +0100 +++ b/cwconfig.py Wed Feb 17 11:26:09 2010 +0100 @@ -347,7 +347,7 @@ path.append(directory) except KeyError: pass - if not cls.CUBES_DIR in path: + if not cls.CUBES_DIR in path and exists(cls.CUBES_DIR): path.append(cls.CUBES_DIR) return path @@ -474,7 +474,7 @@ from logilab.common.modutils import load_module_from_file cls.cls_adjust_sys_path() for ctlfile in ('web/webctl.py', 'etwist/twctl.py', - 'server/serverctl.py', + 'server/serverctl.py', 'devtools/devctl.py', 'goa/goactl.py'): if exists(join(CW_SOFTWARE_ROOT, ctlfile)): try: