Permalink
Browse files

make sure we create all dirs.

  • Loading branch information...
1 parent e1b6a84 commit 7977f417d93504b1a0ff330d99754bda8ed1a855 @benoitc benoitc committed Nov 2, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/couchapp/app.py
  2. +1 −1 src/couchapp/bin/couchapp_cli.py
View
2 src/couchapp/app.py
@@ -103,7 +103,7 @@ def generate_app(self, template=None):
if template is not None:
prefix = self.ui.rjoin(*template.split('/'))
try:
- os.mkdir(self.app_dir)
+ os.makedirs(self.app_dir)
except OSError, e:
errno, message = e
raise AppError("Can't create a CouchApp in %s: %s" % (
View
2 src/couchapp/bin/couchapp_cli.py
@@ -111,7 +111,7 @@ def main():
# generate options
parser.add_option_group(OptionGroup(parser, "Generate a new CouchApp! (start here)",
- "couchapp generate <appname> [appdir]"))
+ "couchapp generate <appname>|<appdir>"))
# push options
group_push = OptionGroup(parser, "Pushes a CouchApp to CouchDB",

0 comments on commit 7977f41

Please sign in to comment.