mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
dev_environment.py - process broken symlinks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user