Files
openide/python/testData/debug/runner.py
Dmitry Trofimov d16cac767d Add test for '-m package' interpreter option in debug mode (PY-15230)
Currently -m is removed while package stays in the options. This breaks the process launch.
2016-10-30 13:05:30 +01:00

11 lines
119 B
Python

import runpy
import sys
print(sys.argv)
x = 1
program = sys.argv[1]
sys.argv = sys.argv[1:]
runpy.run_path(program)