js-beautify/tools/python-rel
2018-07-25 18:58:16 -07:00

17 lines
372 B
Bash
Executable File

#!/usr/bin/env bash
REL_SCRIPT_DIR="`dirname \"$0\"`"
SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`"
PROJECT_DIR="`( cd \"$SCRIPT_DIR/..\" && pwd )`"
PYTHON_ENV=python-rel
if [ -d "$PROJECT_DIR/build/$PYTHON_ENV/Scripts" ]; then
RUN_FILE="$PROJECT_DIR/build/$PYTHON_ENV/Scripts/$1"
else
RUN_FILE="$PROJECT_DIR/build/$PYTHON_ENV/bin/$1"
fi
shift
$RUN_FILE $@