diff --git a/resources/command_runner/build_resources.sh b/resources/command_runner/build_resources.sh index e1d8dd3..e674a5c 100755 --- a/resources/command_runner/build_resources.sh +++ b/resources/command_runner/build_resources.sh @@ -11,7 +11,7 @@ # not expressly granted therein are reserved by Shotgun Software Inc. # The path to where the PySide binaries are installed -PYTHON_BASE="/Applications/Shotgun.app/Contents/Resources/Python/bin" +PYTHON_BASE="/Applications/Shotgun.app/Contents/Resources/Python" # Remove any problematic profiles from pngs. for f in *.png; do mogrify $f; done @@ -24,15 +24,15 @@ function build_qt { $1 $2 > $UI_PYTHON_PATH/$3.py # replace PySide imports with tank.platform.qt and remove line containing Created by date - sed -i "" -e "s/from PySide import/from tank.platform.qt import/g" -e "/# Created:/d" $UI_PYTHON_PATH/$3.py + sed -i $UI_PYTHON_PATH/$3.py -e "s/from PySide import/from tank.platform.qt import/g" -e "/# Created:/d" } function build_ui { - build_qt "${PYTHON_BASE}/python ${PYTHON_BASE}/pyside-uic --from-imports" "$1.ui" "$1" + build_qt "${PYTHON_BASE}/bin/python ${PYTHON_BASE}/bin/pyside-uic --from-imports" "$1.ui" "$1" } function build_res { - build_qt "${PYTHON_BASE}/pyside-rcc -py3" "$1.qrc" "$1_rc" + build_qt "${PYTHON_BASE}/bin/pyside-rcc -py3" "$1.qrc" "$1_rc" } diff --git a/resources/create_sandbox/build_resources.sh b/resources/create_sandbox/build_resources.sh index b78d160..801fc69 100755 --- a/resources/create_sandbox/build_resources.sh +++ b/resources/create_sandbox/build_resources.sh @@ -11,7 +11,7 @@ # not expressly granted therein are reserved by Shotgun Software Inc. # The path to where the PySide binaries are installed -PYTHON_BASE="/Applications/Shotgun.app/Contents/Resources/Python/bin" +PYTHON_BASE="/Applications/Shotgun.app/Contents/Resources/Python" # Remove any problematic profiles from pngs. for f in *.png; do mogrify $f; done @@ -24,15 +24,15 @@ function build_qt { $1 $2 > $UI_PYTHON_PATH/$3.py # replace PySide imports with tank.platform.qt and remove line containing Created by date - sed -i "" -e "s/from PySide import/from tank.platform.qt import/g" -e "/# Created:/d" $UI_PYTHON_PATH/$3.py + sed -i $UI_PYTHON_PATH/$3.py -e "s/from PySide import/from tank.platform.qt import/g" -e "/# Created:/d" } function build_ui { - build_qt "${PYTHON_BASE}/python ${PYTHON_BASE}/pyside-uic --from-imports" "$1.ui" "$1" + build_qt "${PYTHON_BASE}/bin/python ${PYTHON_BASE}/bin/pyside-uic --from-imports" "$1.ui" "$1" } function build_res { - build_qt "${PYTHON_BASE}/pyside-rcc -py3" "$1.qrc" "$1_rc" + build_qt "${PYTHON_BASE}/bin/pyside-rcc -py3" "$1.qrc" "$1_rc" }