Updated documentation once more for new cli.

This commit is contained in:
Armin Ronacher 2014-04-29 01:03:32 +02:00
parent a3a5075a94
commit a3ad5405a6
4 changed files with 41 additions and 6 deletions

View file

@ -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