mirror of
https://github.com/python/cpython
synced 2026-09-27 02:58:16 +03:00
Fix wasi.py build after adding the clean subcommand. ({GH-114447)
This commit is contained in:
parent
7fc51c3f6b
commit
5cd9c6b1fc
1 changed files with 2 additions and 1 deletions
|
|
@ -68,7 +68,8 @@ def subdir(working_dir, *, clean_ok=False):
|
|||
terminal_width = 80
|
||||
print("⎯" * terminal_width)
|
||||
print("📁", working_dir)
|
||||
if clean_ok and context.clean and working_dir.exists():
|
||||
if (clean_ok and getattr(context, "clean", False) and
|
||||
working_dir.exists()):
|
||||
print(f"🚮 Deleting directory (--clean)...")
|
||||
shutil.rmtree(working_dir)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue