aboutsummaryrefslogtreecommitdiff
path: root/installer.py
diff options
context:
space:
mode:
authorAlexander Hayden <alexhayden25@gmail.com>2020-12-22 18:36:04 -0500
committerAlexander Hayden <alexhayden25@gmail.com>2020-12-22 18:36:04 -0500
commit2490dd3978b04aeaa543faf5d3a7903deed9d895 (patch)
treeb130fd0b9d8dd000f6f8856343693f6cd3eb9c4b /installer.py
parent73177ca355f5738dc8bdf408a11f4d05df40d9c2 (diff)
downloadmodpackman-2490dd3978b04aeaa543faf5d3a7903deed9d895.tar.gz
modpackman-2490dd3978b04aeaa543faf5d3a7903deed9d895.zip
make installer finally work with all Windows maybe
Diffstat (limited to 'installer.py')
-rw-r--r--[-rwxr-xr-x]installer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/installer.py b/installer.py
index 05384ed..bdad7a6 100755..100644
--- a/installer.py
+++ b/installer.py
@@ -31,7 +31,8 @@ def install_forge():
subprocess.check_output([util.find_jre(), "-jar", forge_path])
except RuntimeError:
if sys.platform == 'win32':
- subprocess.check_output(["start", forge_path])
+ # if we can't find java, see if Windows can...
+ subprocess.check_output([f'cmd /C start "" "{forge_path}"'])
else:
raise