# HG changeset patch # User Sylvain Thénault # Date 1259952358 -3600 # Node ID bc31ede2085de6512b97b4e9a7853c04ef5c2221 # Parent 4b16a7c01a258823444b9ce5fd2cfb3b6b2b489c dont crash if directory doesn't exist diff -r 4b16a7c01a25 -r bc31ede2085d cwconfig.py --- a/cwconfig.py Fri Dec 04 19:45:32 2009 +0100 +++ b/cwconfig.py Fri Dec 04 19:45:58 2009 +0100 @@ -331,6 +331,10 @@ def available_cubes(cls): cubes = set() for directory in cls.cubes_search_path(): + if not os.path.exists(directory): + self.error('unexistant directory in cubes search path: %s' + % directory) + continue for cube in os.listdir(directory): if isdir(join(directory, cube)) and not cube == 'shared': cubes.add(cube)