--- a/devtools/devctl.py Fri Mar 13 11:07:47 2009 +0100
+++ b/devtools/devctl.py Tue Mar 17 19:28:11 2009 +0100
@@ -424,8 +424,8 @@
# self.fail("you can only create new cubes in development mode")
verbose = self.get('verbose')
cubesdir = self.get('directory')
- if not cubedir:
- cubespath = ServerConfiguration.cubes_path()
+ if not cubesdir:
+ cubespath = ServerConfiguration.cubes_search_path()
if len(cubespath) > 1:
raise BadCommandUsage("can't guess directory where to put the new cube."
" Please specify it using the --directory option")
@@ -435,7 +435,7 @@
try:
mkdir(cubesdir)
except OSError, err:
- self.fail("failed to create directory %r\n(%s)" % (cubedir, err))
+ self.fail("failed to create directory %r\n(%s)" % (cubesdir, err))
cubedir = join(cubesdir, cubename)
if exists(cubedir):
self.fail("%s already exists !" % (cubedir))