fixed issue 1092, thanks nicozanf

This commit is contained in:
Massimo
2012-10-16 10:34:36 -05:00
parent 9a6ce11f09
commit 41c40974a3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.1.1 (2012-10-16 10:25:18) dev Version 2.1.1 (2012-10-16 10:34:32) dev
+2 -2
View File
@@ -172,11 +172,11 @@ def run(
adir = os.path.join('applications', a) adir = os.path.join('applications', a)
if not os.path.exists(adir): if not os.path.exists(adir):
if sys.stdin and not sys.stdin.name == '/dev/null': if sys.stdin and not sys.stdin.name == '/dev/null':
c = raw_input('application %s does not exist, create (y/n)?' % a) confirm = raw_input('application %s does not exist, create (y/n)?' % a)
else: else:
logging.warn('application does not exist and will not be created') logging.warn('application does not exist and will not be created')
return return
if c.lower() in ['y', 'yes']: if confirm.lower() in ['y', 'yes']:
os.mkdir(adir) os.mkdir(adir)
w2p_unpack('welcome.w2p', adir) w2p_unpack('welcome.w2p', adir)