forked from orbit-oss/flask
Add "." to sys.path by default
This commit is contained in:
parent
ff034e42cf
commit
bacdd076bd
1 changed files with 2 additions and 0 deletions
|
|
@ -192,6 +192,8 @@ class FlaskClickGroup(click.Group):
|
|||
if value is not None:
|
||||
if os.path.isfile(value):
|
||||
value = prepare_exec_for_file(value)
|
||||
elif '.' not in sys.path:
|
||||
sys.path.insert(0, '.')
|
||||
ctx.obj.app_import_path = value
|
||||
def set_debug(ctx, value):
|
||||
ctx.obj.debug = value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue