mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 14:40:52 +10:00
main.py: Update cwd path
This commit is contained in:
+5
-4
@@ -44,10 +44,11 @@ class OpenCoreLegacyPatcher:
|
|||||||
if utilities.check_cli_args() is not None:
|
if utilities.check_cli_args() is not None:
|
||||||
print("- Detected arguments, switching to CLI mode")
|
print("- Detected arguments, switching to CLI mode")
|
||||||
self.constants.gui_mode = True # Assumes no user interaction is required
|
self.constants.gui_mode = True # Assumes no user interaction is required
|
||||||
self.constants.current_path = Path.cwd()
|
if "--auto_patch" not in sys.argv:
|
||||||
if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS") and "--auto_patch" not in sys.argv:
|
self.constants.current_path = Path.cwd()
|
||||||
print("- Rerouting payloads location")
|
if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
|
||||||
self.constants.payload_path = sys._MEIPASS / Path("payloads")
|
print("- Rerouting payloads location")
|
||||||
|
self.constants.payload_path = sys._MEIPASS / Path("payloads")
|
||||||
arguments.arguments().parse_arguments(self.constants)
|
arguments.arguments().parse_arguments(self.constants)
|
||||||
else:
|
else:
|
||||||
print(f"- No arguments present, loading {'GUI' if self.constants.wxpython_variant is True else 'TUI'} mode")
|
print(f"- No arguments present, loading {'GUI' if self.constants.wxpython_variant is True else 'TUI'} mode")
|
||||||
|
|||||||
Reference in New Issue
Block a user