diff --git a/generate_vstasks.py b/generate_vstasks.py index ebfeb7b..9048130 100644 --- a/generate_vstasks.py +++ b/generate_vstasks.py @@ -92,10 +92,7 @@ configpath = configdir / "tasks.json" python = str(Path(sys.executable)) - if len(sys.argv) < 2: - name = Path.cwd().name - else: - name = sys.argv[1] + name = Path.cwd().name if len(sys.argv) < 2 else sys.argv[1] config = TEMPLATE.format(pyexec=python, modulename=name) with configpath.open("w") as configfile: