Browse Source

Add "." to sys.path by default

pull/1039/head
Armin Ronacher 11 years ago
parent
commit
bacdd076bd
  1. 2
      flask/cli.py

2
flask/cli.py

@ -192,6 +192,8 @@ class FlaskClickGroup(click.Group):
if value is not None: if value is not None:
if os.path.isfile(value): if os.path.isfile(value):
value = prepare_exec_for_file(value) value = prepare_exec_for_file(value)
elif '.' not in sys.path:
sys.path.insert(0, '.')
ctx.obj.app_import_path = value ctx.obj.app_import_path = value
def set_debug(ctx, value): def set_debug(ctx, value):
ctx.obj.debug = value ctx.obj.debug = value

Loading…
Cancel
Save