Browse Source

fix broken sys.argv list

pull/2777/head
Miguel Grinberg 7 years ago
parent
commit
d612ffb0a3
  1. 2
      flask/cli.py

2
flask/cli.py

@ -887,7 +887,7 @@ def main(as_module=False):
# Python rewrites "python -m flask" to the path to the file in argv.
# Restore the original command so that the reloader works.
sys.argv = ['-m', this_module] + args
sys.argv = [sys.executable, '-m', this_module] + args
else:
name = None

Loading…
Cancel
Save