Skip to content

Commit 058aa4b

Browse files
SG-25524 tk-multi-devutils Rebranding (#7)
* Adjust build scripts
1 parent e49bf81 commit 058aa4b

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

resources/command_runner/build_resources.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# not expressly granted therein are reserved by Shotgun Software Inc.
1212

1313
# The path to where the PySide binaries are installed
14-
PYTHON_BASE="/Applications/Shotgun.app/Contents/Resources/Python/bin"
14+
PYTHON_BASE="/Applications/Shotgun.app/Contents/Resources/Python"
1515

1616
# Remove any problematic profiles from pngs.
1717
for f in *.png; do mogrify $f; done
@@ -24,15 +24,15 @@ function build_qt {
2424
$1 $2 > $UI_PYTHON_PATH/$3.py
2525

2626
# replace PySide imports with tank.platform.qt and remove line containing Created by date
27-
sed -i "" -e "s/from PySide import/from tank.platform.qt import/g" -e "/# Created:/d" $UI_PYTHON_PATH/$3.py
27+
sed -i $UI_PYTHON_PATH/$3.py -e "s/from PySide import/from tank.platform.qt import/g" -e "/# Created:/d"
2828
}
2929

3030
function build_ui {
31-
build_qt "${PYTHON_BASE}/python ${PYTHON_BASE}/pyside-uic --from-imports" "$1.ui" "$1"
31+
build_qt "${PYTHON_BASE}/bin/python ${PYTHON_BASE}/bin/pyside-uic --from-imports" "$1.ui" "$1"
3232
}
3333

3434
function build_res {
35-
build_qt "${PYTHON_BASE}/pyside-rcc -py3" "$1.qrc" "$1_rc"
35+
build_qt "${PYTHON_BASE}/bin/pyside-rcc -py3" "$1.qrc" "$1_rc"
3636
}
3737

3838

resources/create_sandbox/build_resources.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# not expressly granted therein are reserved by Shotgun Software Inc.
1212

1313
# The path to where the PySide binaries are installed
14-
PYTHON_BASE="/Applications/Shotgun.app/Contents/Resources/Python/bin"
14+
PYTHON_BASE="/Applications/Shotgun.app/Contents/Resources/Python"
1515

1616
# Remove any problematic profiles from pngs.
1717
for f in *.png; do mogrify $f; done
@@ -24,15 +24,15 @@ function build_qt {
2424
$1 $2 > $UI_PYTHON_PATH/$3.py
2525

2626
# replace PySide imports with tank.platform.qt and remove line containing Created by date
27-
sed -i "" -e "s/from PySide import/from tank.platform.qt import/g" -e "/# Created:/d" $UI_PYTHON_PATH/$3.py
27+
sed -i $UI_PYTHON_PATH/$3.py -e "s/from PySide import/from tank.platform.qt import/g" -e "/# Created:/d"
2828
}
2929

3030
function build_ui {
31-
build_qt "${PYTHON_BASE}/python ${PYTHON_BASE}/pyside-uic --from-imports" "$1.ui" "$1"
31+
build_qt "${PYTHON_BASE}/bin/python ${PYTHON_BASE}/bin/pyside-uic --from-imports" "$1.ui" "$1"
3232
}
3333

3434
function build_res {
35-
build_qt "${PYTHON_BASE}/pyside-rcc -py3" "$1.qrc" "$1_rc"
35+
build_qt "${PYTHON_BASE}/bin/pyside-rcc -py3" "$1.qrc" "$1_rc"
3636
}
3737

3838

0 commit comments

Comments
 (0)