chore: use unzip and zip when available

This commit is contained in:
zx
2024-09-16 20:07:23 -04:00
parent d1c3bc6908
commit 511cb4bbe3
6 changed files with 60 additions and 10 deletions

View File

@@ -35,7 +35,12 @@ class Executable:
def __init__(self, path: str, bundle_path: Optional[str] = None):
if not os.path.isfile(path):
sys.exit(f"[!] {path} does not exist (executable)")
print(f"[!] {path} does not exist (executable)", file=sys.stderr)
sys.exit(
"[?] check the wiki for info: "
"https://github.com/asdfzxcvbn/pyzule-rw/wiki/"
"file-does-not-exist-(executable)-%3F"
)
self.path = path
self.bundle_path = bundle_path