issue 889, thanks spiffytech

This commit is contained in:
mdipierro
2012-07-16 14:25:19 -05:00
parent b7c544bd2c
commit 36966e962e
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-07-16 14:11:51) dev
Version 2.00.0 (2012-07-16 14:25:16) dev
+7 -2
View File
@@ -172,8 +172,13 @@ def run(
die(errmsg)
adir = os.path.join('applications', a)
if not os.path.exists(adir):
if raw_input('application %s does not exist, create (y/n)?'
% a).lower() in ['y', 'yes']:
if sys.stdin and not sys.stdin.name == '/dev/null':
c = raw_input('application %s does not exist, create (y/n)?' % a)
else:
logging.warn('application does not exist and will not be created')
return
if c.lower() in ['y', 'yes']:
os.mkdir(adir)
w2p_unpack('welcome.w2p', adir)
for subfolder in ['models','views','controllers', 'databases',