From ee875f979b8885f8c5a873a57c902f1441414a06 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Thu, 8 Jul 2021 16:01:38 -0700 Subject: [PATCH] Allow running scripts using msys2/mingw/git bash (#1954) Signed-off-by: Brandon DeRosier --- python/python.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/python.sh b/python/python.sh index 6d53c2ee07..a67cdb2b22 100755 --- a/python/python.sh +++ b/python/python.sh @@ -1,7 +1,7 @@ #!/bin/bash # Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. -# +# # SPDX-License-Identifier: Apache-2.0 OR MIT # @@ -15,9 +15,10 @@ while [[ -h "$SOURCE" ]]; do done DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" -if [[ "$OSTYPE" = *"darwin"* ]]; -then +if [[ "$OSTYPE" == *"darwin"* ]]; then PYTHON=$DIR/runtime/python-3.7.10-rev1-darwin/Python.framework/Versions/3.7/bin/python3 +elif [[ "$OSTYPE" == "msys" ]]; then + PYTHON=$DIR/runtime/python-3.7.10-rev1-windows/python/python.exe else PYTHON=$DIR/runtime/python-3.7.10-rev2-linux/python/bin/python fi