From dd6f9c814aac4079a07ff5f1853d2346bd91e73a Mon Sep 17 00:00:00 2001 From: Alexander Hayden Date: Wed, 6 Jan 2021 00:39:36 -0500 Subject: more robust jre finding --- util.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util.py') diff --git a/util.py b/util.py index 6d7feed..f48ac2b 100644 --- a/util.py +++ b/util.py @@ -94,6 +94,8 @@ def find_jre(): if sys.platform == 'win32': # We can try and use the Minecraft Launcher's integrated JRE on Windows if os.path.exists("C:\\Program Files (x86)\\Minecraft Launcher\\runtime\\jre-x64\\java.exe"): return "C:\\Program Files (x86)\\Minecraft Launcher\\runtime\\jre-x64\\java.exe" + elif os.path.exists("C:\\Program Files (x86)\\Minecraft Launcher\\runtime\\jre-x64\\bin\\java.exe"): + return "C:\\Program Files (x86)\\Minecraft Launcher\\runtime\\jre-x64\\bin\\java.exe" raise RuntimeError("Unable to detect an installed JRE. Please install Java in order to use modpackman.") -- cgit v1.2.3