Skip to content

Commit

Permalink
Remove hardcoded path for pyuic4 on Mac install
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Sep 13, 2012
1 parent d11fd92 commit 396f363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mac/cmake/1qt.cmake.in
Expand Up @@ -121,7 +121,7 @@ FOREACH (PU pylupdate4;pyrcc4)
ENDIF ()
ENDFOREACH (PU)
IF (NOT EXISTS "${QBINDIR}/pyuic4")
EXECUTE_PROCESS (COMMAND sed -E "s, /.*/PyQt4/uic/pyuic.py, ${QDATADIR}/python/PyQt4/uic/pyuic.py," "@PYQT4_BIN_DIR@/pyuic4"
EXECUTE_PROCESS (COMMAND sed -E "s, /.*/PyQt4/uic/pyuic.py, \"\$(/usr/bin/dirname \"\$0\")/../../Resources/python/PyQt4/uic/pyuic.py\"," "@PYQT4_BIN_DIR@/pyuic4"
OUTPUT_VARIABLE PYUIC_CONTENTS)
FILE (WRITE "${QBINDIR}/pyuic4" "${PYUIC_CONTENTS}")
EXECUTE_PROCESS (COMMAND chmod +x "${QBINDIR}/pyuic4")
Expand Down

0 comments on commit 396f363

Please sign in to comment.