mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
Co-authored-by: Tad Hardesty <tad@platymuus.com>
This commit is contained in:
@@ -1,15 +1,25 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# `sh` must be used here instead of `bash` to support GitHub Desktop.
|
# `sh` must be used here instead of `bash` to support GitHub Desktop.
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Strip the "App Execution Aliases" from $PATH. Even if the user installed
|
||||||
|
# Python using the Windows Store on purpose, these aliases always generate
|
||||||
|
# "Permission denied" errors when sh.exe tries to invoke them.
|
||||||
|
PATH=$(echo "$PATH" | tr ":" "\n" | grep -v "AppData/Local/Microsoft/WindowsApps" | tr "\n" ":")
|
||||||
|
|
||||||
|
# Try to find a Python executable.
|
||||||
if command -v python3 >/dev/null 2>&1; then
|
if command -v python3 >/dev/null 2>&1; then
|
||||||
PY=python3
|
PY=python3
|
||||||
elif command -v python >/dev/null 2>&1; then
|
elif command -v python >/dev/null 2>&1; then
|
||||||
PY=python
|
PY=python
|
||||||
elif command -v py >/dev/null 2>&1; then
|
elif command -v py >/dev/null 2>&1; then
|
||||||
PY=py
|
PY="py -3"
|
||||||
else
|
else
|
||||||
echo "Please install Python 3.6 or later."
|
echo "Please install Python from https://www.python.org/downloads/"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Deduce the path separator and add the mapmerge package to the search path.
|
||||||
PATHSEP=$($PY - <<'EOF'
|
PATHSEP=$($PY - <<'EOF'
|
||||||
import sys, os
|
import sys, os
|
||||||
if sys.version_info.major != 3 or sys.version_info.minor < 6:
|
if sys.version_info.major != 3 or sys.version_info.minor < 6:
|
||||||
|
|||||||
Reference in New Issue
Block a user