Skip to content
Myr

Add "." to sys.path by default

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent ff034e4 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:flask/cli.py+2 added
190 unmodified lines
191 def set_app_id(ctx, value):192 if value is not None:193 if os.path.isfile(value):194 value = prepare_exec_for_file(value)195 elif '.' not in sys.path:196 sys.path.insert(0, '.')197 ctx.obj.app_import_path = value198 def set_debug(ctx, value):199 ctx.obj.debug = value200
151 unmodified lines