diff --git a/Code/Mantid/Build/CMake/Packaging/mantidpython.in b/Code/Mantid/Build/CMake/Packaging/mantidpython.in
index 4efa16c1591152d1faa4eaac76f59828fa0c6420..9261d00f1b3eb3e23915cfc3728964dec4b30651 100755
--- a/Code/Mantid/Build/CMake/Packaging/mantidpython.in
+++ b/Code/Mantid/Build/CMake/Packaging/mantidpython.in
@@ -25,7 +25,7 @@ fi
 PV_PLUGIN_PATH="${INSTALLDIR}/pvplugins/pvplugins"
 
 # Define extra libraries for python
-LOCAL_PYTHONPATH=@WRAPPER_PREFIX@$INSTALLDIR
+LOCAL_PYTHONPATH=$INSTALLDIR
 if [ -n "${PYTHONPATH}" ]; then
     LOCAL_PYTHONPATH=${LOCAL_PYTHONPATH}:${PYTHONPATH}
 fi
@@ -35,4 +35,4 @@ LD_PRELOAD=${LOCAL_PRELOAD} TCMALLOC_RELEASE_RATE=${TCM_RELEASE} \
     LD_LIBRARY_PATH=${LOCAL_LDPATH} QT_API=pyqt \
     PV_PLUGIN_PATH=${PV_PLUGIN_PATH} \
     PYTHONPATH=${LOCAL_PYTHONPATH} \
-    ${IPYTHON} $*@WRAPPER_POSTFIX@
+    @WRAPPER_PREFIX@${IPYTHON} $*@WRAPPER_POSTFIX@