Fix #1886: test_flask_breakpoint_multiproc fails with run=attach_by_socket

Adjust sys.path before running Flask from the stub script.
This commit is contained in:
Pavel Minaev 2019-11-18 12:49:41 -08:00 committed by Pavel Minaev
parent fb6d35ebea
commit 52ebb7ca1f

View file

@ -5,4 +5,4 @@
import debug_me # noqa
import runpy
runpy.run_module("flask", run_name="__main__")
runpy.run_module("flask", run_name="__main__", alter_sys=True)