install_manager.remove() should ensure we are inside the library folder before calling rmtree().
|
def remove(name: str, missing_ok: bool = True): |
|
if local_lib := local_index.get(name, default=None): |
|
rmtree(local_lib.location) |
|
local_index.remove(name) |
|
|
|
elif not missing_ok: |
|
raise Exception(f"Library {name} not found.") |
install_manager.remove()should ensure we are inside the library folder before callingrmtree().openscad-library-manager/olman-client/olman_client/install_manager.py
Lines 46 to 52 in 4c72d39