diff autobot/template.py @ 69:849bbc2e5572

first use of project template -> devicemanager
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 11 Jan 2011 12:57:43 -0800
parents fbd4a34d8e42
children d033843da35a
line wrap: on
line diff
--- a/autobot/template.py	Tue Jan 11 12:43:08 2011 -0800
+++ b/autobot/template.py	Tue Jan 11 12:57:43 2011 -0800
@@ -178,6 +178,8 @@
             projectdir = os.path.join(here, 'projects', project)
             if os.path.exists(projectdir):
                 assert os.path.isdir(projectdir)
+            else:
+                os.makedirs(projectdir)
             output = os.path.join(projectdir, '__init__.py')
             assert not os.path.exists(output), "Project '%s' already exists" % project