mishankov/piter

Unify this and allow to add new patterns in pyproject.toml

Closed this issue · 1 comments

piter/piter/cli/app.py

Lines 88 to 96 in f907352

if script_line.startswith("python -m"):
command = script_line.replace(
"python -m", f"{os.path.join(environment.executives_path, 'python')} -m"
).split(" ")
elif script_line.startswith("coverage run"):
command = script_line.replace(
"coverage run",
f"{os.path.join(environment.executives_path, 'coverage')} run",
).split(" ")

No new patterns will be allowed. Fix of #6 is enough for now