feat: remove uisupporteddevices

This commit is contained in:
zx
2024-09-06 00:18:16 -04:00
parent c899ec7c22
commit dc21719157
7 changed files with 45 additions and 15 deletions

View File

@@ -3,12 +3,11 @@ import sys
import shutil
import zipfile
import platform
import plistlib
import subprocess
from typing import Optional
from glob import glob, iglob
from argparse import Namespace
from importlib import resources # type: ignore
from typing import Optional, Any
from tempfile import TemporaryDirectory
@@ -97,14 +96,6 @@ def get_tools_dir() -> tuple[str, str]:
)
def get_plist(path: str) -> dict[str, Any]:
try:
with open(path, "rb") as f:
return plistlib.load(f)
except Exception:
sys.exit(f"[!] couldn't read {path}")
def delete_if_exists(path: str, bn: str) -> bool:
is_file = os.path.isfile(path)