Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
phobson committed Feb 19, 2024
1 parent bdfc55b commit a6eee95
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions generate_vstasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a6eee95

Please sign in to comment.