Add python3 support to launch-game.sh

This commit is contained in:
Chris
2020-07-09 07:23:44 +01:00
committed by Oliver Brakmann
parent 26fc65209d
commit 9f9709f058

View File

@@ -1,5 +1,9 @@
#!/bin/sh
MODLAUNCHER=$(python -c "import os; print(os.path.realpath('$0'))")
if command -v python3 >/dev/null 2>&1; then
MODLAUNCHER=$(python3 -c "import os; print(os.path.realpath('$0'))")
else
MODLAUNCHER=$(python -c "import os; print(os.path.realpath('$0'))")
fi
# Prompt for a mod to launch if one is not already specified
MODARG=''