Skip to content

Commit 09e0ced

Browse files
authored
fix `miniwdl configure --cfg JUST_FILENAME (#813)
Partially addresses #805
1 parent 5cc2cb4 commit 09e0ced

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WDL/CLI.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,8 @@ def yes(prompt):
18501850
print(cfg_content)
18511851
print()
18521852
sys.stdout.flush()
1853-
os.makedirs(os.path.dirname(cfg), exist_ok=True)
1853+
if dn := os.path.dirname(cfg):
1854+
os.makedirs(dn, exist_ok=True)
18541855
with open(cfg, "w") as outfile:
18551856
print(
18561857
f"# miniwdl configure {miniwdl_version or '(version unknown)'} {datetime.utcnow()}Z",

0 commit comments

Comments
 (0)