forked from orbit-oss/flask
Updated documentation once more for new cli.
This commit is contained in:
parent
a3a5075a94
commit
a3ad5405a6
4 changed files with 41 additions and 6 deletions
|
|
@ -63,6 +63,11 @@ def prepare_exec_for_file(filename):
|
|||
filename = filename[:-3]
|
||||
elif os.path.split(filename)[1] == '__init__.py':
|
||||
filename = os.path.dirname(filename)
|
||||
else:
|
||||
raise NoAppException('The file provided (%s) does exist but is not a '
|
||||
'valid Python file. This means that it cannot '
|
||||
'be used as application. Please change the '
|
||||
'extension to .py' % filename)
|
||||
filename = os.path.realpath(filename)
|
||||
|
||||
dirpath = filename
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue