no more cubes_dir class method tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 14 Apr 2009 14:50:42 +0200
branchtls-sprint
changeset 1342 4273e44852cb
parent 1341 9502d02630bf
child 1343 659d3dc42e68
no more cubes_dir class method
cwctl.py
--- a/cwctl.py	Tue Apr 14 14:50:28 2009 +0200
+++ b/cwctl.py	Tue Apr 14 14:50:42 2009 +0200
@@ -4,7 +4,7 @@
 %s"""
 
 import sys
-from os import remove, listdir, system, kill, getpgid
+from os import remove, listdir, system, kill, getpgid, pathsep
 from os.path import exists, join, isfile, isdir
 
 from logilab.common.clcommands import register_commands, pop_arg
@@ -176,7 +176,7 @@
                 print '   ', line
         print 
         try:
-            cubesdir = cwcfg.cubes_dir()
+            cubesdir = pathsep.join(cwcfg.cubes_search_path())
             namesize = max(len(x) for x in cwcfg.available_cubes())
         except ConfigurationError, ex:
             print 'No cubes available:', ex