dev_environment.py - process broken symlinks

This commit is contained in:
Andrej730
2025-07-18 19:12:53 +05:00
parent 2f1de2f104
commit e318cbd9e6
@@ -156,7 +156,8 @@ def main() -> None:
path.unlink()
else:
shutil.rmtree(path)
elif path.is_file():
# Check `is_symlink` in case if it's a broken symlink.
elif path.is_file() or path.is_symlink():
path.unlink()
else:
pass