Fix pathing when running command file

This commit is contained in:
Mykola Grymalyuk
2020-11-30 21:53:56 -07:00
parent fad6ae251a
commit a7b59df87d
2 changed files with 3 additions and 0 deletions

View File

@@ -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:

View File

@@ -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