Skip to content

Commit 45b186d

Browse files
brettcannonGlyphack
authored andcommitted
Fix wasi.py build after adding the clean subcommand. ({pythonGH-114447)
1 parent 0860b6b commit 45b186d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tools/wasm/wasi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def wrapper(context):
6868
terminal_width = 80
6969
print("⎯" * terminal_width)
7070
print("📁", working_dir)
71-
if clean_ok and context.clean and working_dir.exists():
71+
if (clean_ok and getattr(context, "clean", False) and
72+
working_dir.exists()):
7273
print(f"🚮 Deleting directory (--clean)...")
7374
shutil.rmtree(working_dir)
7475

0 commit comments

Comments
 (0)