From 97bb26d452ce7d461bdf56274bb17a67771c09c6 Mon Sep 17 00:00:00 2001 From: Nico Zanferrari Date: Sun, 26 Apr 2020 22:14:36 +0200 Subject: [PATCH 1/2] Fix errors with unwanted new app folder Replying 'no' or ENTER when asked for the creation of a missing app folder was not properly managed. It gives IOError on Mac and unwanted behaviour on Win --- gluon/shell.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gluon/shell.py b/gluon/shell.py index 92b6334b..276473f9 100644 --- a/gluon/shell.py +++ b/gluon/shell.py @@ -248,6 +248,9 @@ def run( if confirm.lower() in ('y', 'yes'): os.mkdir(adir) fileutils.create_app(adir) + else: + logging.warn('application folder does not exist and has not been created as requested') + return if force_migrate: c = 'appadmin' # Load all models (hack already used for appadmin controller) From 9ffce59ddb3adcfa57bf79f9a64021f74f6ac748 Mon Sep 17 00:00:00 2001 From: Nico Zanferrari Date: Mon, 27 Apr 2020 10:20:11 +0200 Subject: [PATCH 2/2] Update shell.py --- gluon/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/shell.py b/gluon/shell.py index 276473f9..20d58de3 100644 --- a/gluon/shell.py +++ b/gluon/shell.py @@ -241,7 +241,7 @@ def run( if not cron_job and not scheduler_job and \ sys.stdin and not sys.stdin.name == '/dev/null': confirm = raw_input( - 'application %s does not exist, create (y/n)?' % a) + 'application %s does not exist, create (y/N)?' % a) else: logging.warn('application does not exist and will not be created') return