From a7b59df87dead6175a8abf79826e1aab3d1b3276 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Mon, 30 Nov 2020 21:53:56 -0700 Subject: [PATCH] Fix pathing when running command file --- OpenCore-Patcher.command | 1 + Resources/Versions.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/OpenCore-Patcher.command b/OpenCore-Patcher.command index eab501b47..db88cda4b 100755 --- a/OpenCore-Patcher.command +++ b/OpenCore-Patcher.command @@ -24,6 +24,7 @@ while MainMenu: print("###################################################") print(" OpenCore Legacy patcher v%s" % patcher_version) print(" Current Model: %s" % BuildOpenCore.current_model) + print(Versions.current_path) print("###################################################") print("") if BuildOpenCore.current_model not in ModelArray.SupportedSMBIOS: diff --git a/Resources/Versions.py b/Resources/Versions.py index b8925d711..0821df5f7 100644 --- a/Resources/Versions.py +++ b/Resources/Versions.py @@ -25,6 +25,8 @@ io80211high_sierra_version = "1.0.0" io80211mojave_version = "1.0.0" # List current location +os.chdir(os.path.dirname(os.path.realpath(__file__))) +os.chdir("..") current_path = os.getcwd() # Payload Location