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
This commit is contained in:
@@ -248,6 +248,9 @@ def run(
|
|||||||
if confirm.lower() in ('y', 'yes'):
|
if confirm.lower() in ('y', 'yes'):
|
||||||
os.mkdir(adir)
|
os.mkdir(adir)
|
||||||
fileutils.create_app(adir)
|
fileutils.create_app(adir)
|
||||||
|
else:
|
||||||
|
logging.warn('application folder does not exist and has not been created as requested')
|
||||||
|
return
|
||||||
|
|
||||||
if force_migrate:
|
if force_migrate:
|
||||||
c = 'appadmin' # Load all models (hack already used for appadmin controller)
|
c = 'appadmin' # Load all models (hack already used for appadmin controller)
|
||||||
|
|||||||
Reference in New Issue
Block a user