]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/on--server-cmd.py
features: show version number of the Python interpreter
[bup.git] / lib / cmd / on--server-cmd.py
index 71ed4d1dc869bfdd3679ec88d71d37d469dae0a0..0c151b0f1655229094cc2723b9eac3fed45cc84f 100755 (executable)
@@ -9,13 +9,15 @@ for arg in "$@"; do
     arg_i=$((arg_i + 1))
 done
 # Here to end of preamble replaced during install
-bup_python="$(dirname "$0")/bup-python" || exit $?
+bup_python="$(dirname "$0")/../../config/bin/python" || exit $?
 exec "$bup_python" "$0"
 """
 # end of bup preamble
 
 from __future__ import absolute_import
-import sys, os, struct
+import os, struct, sys
+
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
 
 from bup import compat, options, helpers, path
 from bup.compat import environ, py_maj