diff --git a/scripts/ost_config.in b/scripts/ost_config.in
index 0d555211c2d943ba1dfa268e5ea84c2a2212bb47..4736555cdb3e78e7ae87c24d0a0a678b62974a2c 100644
--- a/scripts/ost_config.in
+++ b/scripts/ost_config.in
@@ -31,13 +31,13 @@ export DYLD_FRAMEWORK_PATH="$DNG_LIBDIR:${DYLD_FRAMEWORK_PATH}"
 export DYLD_LIBRARY_PATH="$DNG_LIBDIR:${DYLD_LIBRARY_PATH}"
 export LD_LIBRARY_PATH="$DNG_LIBDIR:${LD_LIBRARY_PATH}"
 # set QT_PLUGIN_PATH for bundle (commented except in linux bundles)
- export QT_PLUGIN_PATH="$BIN_DIR/plugins"
+# export QT_PLUGIN_PATH="$BIN_DIR/plugins"
 # unset PYTHONPATH for bundle (commented except in linux bundles)
- unset PYTHONPATH
+# unset PYTHONPATH
 
 
 # retrieve absolute path to python executable
-pyexec="$DNG_ROOT/bin/python"
+pyexec="@PYTHON_BINARY@"
 
 if [ ! -x "$pyexec" ]; then 
   echo "Error: Python executable '$pyexec' not found!"