diff options
author | Alexander Hayden <alexhayden25@gmail.com> | 2021-01-06 00:39:36 -0500 |
---|---|---|
committer | Alexander Hayden <alexhayden25@gmail.com> | 2021-01-06 00:39:36 -0500 |
commit | dd6f9c814aac4079a07ff5f1853d2346bd91e73a (patch) | |
tree | 8dcc95b4f2e95e931c65b50cfff73ea4fdac6261 /util.py | |
parent | 86fefb8233384825003bd62abd60ec666420063a (diff) | |
download | modpackman-dd6f9c814aac4079a07ff5f1853d2346bd91e73a.tar.gz modpackman-dd6f9c814aac4079a07ff5f1853d2346bd91e73a.zip |
more robust jre findingmodpackman-v2
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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.") |