From 71eecd80137de66345baf6c7a8a8a9cae3477f3d Mon Sep 17 00:00:00 2001 From: Steven Burnham Date: Thu, 7 Dec 2023 22:19:16 -0500 Subject: [PATCH] fixed path from moving emulated folder --- pypush/emulated/nac.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pypush/emulated/nac.py b/pypush/emulated/nac.py index 399a274..a93afb2 100644 --- a/pypush/emulated/nac.py +++ b/pypush/emulated/nac.py @@ -3,13 +3,15 @@ from . import mparser as macholibre from .jelly import Jelly import plistlib import logging +from pathlib import Path logger = logging.getLogger("nac") BINARY_HASH = "e1181ccad82e6629d52c6a006645ad87ee59bd13" BINARY_PATH = "emulated/IMDAppleServices" BINARY_URL = "https://github.com/JJTech0130/nacserver/raw/main/IMDAppleServices" -FAKE_DATA = plistlib.load(open("emulated/data.plist", "rb")) +with open(Path(__file__).parent / "data.plist", "rb") as f: + FAKE_DATA = plistlib.load(f) def load_binary() -> bytes: # Open the file at BINARY_PATH, check the hash, and return the binary