mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
dev_environment.py - process broken symlinks
This commit is contained in:
@@ -156,7 +156,8 @@ def main() -> None:
|
|||||||
path.unlink()
|
path.unlink()
|
||||||
else:
|
else:
|
||||||
shutil.rmtree(path)
|
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()
|
path.unlink()
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user