diff options
author | Alexander Hayden <alexhayden25@gmail.com> | 2020-12-22 18:36:04 -0500 |
---|---|---|
committer | Alexander Hayden <alexhayden25@gmail.com> | 2020-12-22 18:36:04 -0500 |
commit | 2490dd3978b04aeaa543faf5d3a7903deed9d895 (patch) | |
tree | b130fd0b9d8dd000f6f8856343693f6cd3eb9c4b /installer.py | |
parent | 73177ca355f5738dc8bdf408a11f4d05df40d9c2 (diff) | |
download | modpackman-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.py | 3 |
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 |