--- a/cwconfig.py Fri Mar 26 16:15:41 2010 +0100
+++ b/cwconfig.py Fri Mar 26 17:07:41 2010 +0100
@@ -351,11 +351,8 @@
@classmethod
def cubes_search_path(cls):
"""return the path of directories where cubes should be searched"""
- path = []
- for directory in cls.CUBES_PATH:
- directory = abspath(normpath(directory))
- if exists(directory) and not directory in path:
- path.append(directory)
+ path = [abspath(normpath(directory)) for directory in cls.CUBES_PATH
+ if directory.strip() and exists(directory.strip())]
if not cls.CUBES_DIR in path and exists(cls.CUBES_DIR):
path.append(cls.CUBES_DIR)
return path