chore: use insert_dylib on more platforms

This commit is contained in:
zx
2024-09-13 18:07:00 -04:00
parent 4375b7f880
commit 52b3b11a1a
6 changed files with 22 additions and 15 deletions

View File

@@ -106,11 +106,12 @@ def get_tools_dir() -> tuple[str, str]:
# thank god i dont have to use importlib,
# it's the WORST standard library package prior to 3.12
install_dir = os.path.dirname(__file__)
specific_dir = f"{install_dir}/tools/{system}/{mach}"
return (
install_dir,
f"{install_dir}/tools/{system}/{mach}"
)
if not os.path.isdir(specific_dir):
sys.exit(f"[!] cyan is not supported on: {system} {mach}")
return (install_dir, specific_dir)
def delete_if_exists(path: str, bn: str) -> bool: