From e550986c1e4dcf0c6b5b68860c9b5e594b831710 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Fri, 12 Feb 2021 14:40:45 -0600 Subject: [PATCH] on-cmd: copy to bup.cmd.on Signed-off-by: Rob Browning --- lib/{cmd/on-cmd.py => bup/cmd/on.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename lib/{cmd/on-cmd.py => bup/cmd/on.py} (97%) diff --git a/lib/cmd/on-cmd.py b/lib/bup/cmd/on.py similarity index 97% rename from lib/cmd/on-cmd.py rename to lib/bup/cmd/on.py index 69b453d..960d069 100755 --- a/lib/cmd/on-cmd.py +++ b/lib/bup/cmd/on.py @@ -9,7 +9,7 @@ for arg in "$@"; do arg_i=$((arg_i + 1)) done # Here to end of preamble replaced during install -bup_python="$(dirname "$0")/../../config/bin/python" || exit $? +bup_python="$(dirname "$0")/../../../config/bin/python" || exit $? exec "$bup_python" "$0" """ # end of bup preamble @@ -18,7 +18,7 @@ from __future__ import absolute_import # Intentionally replace the dirname "$0" that python prepends import os, sys -sys.path[0] = os.path.dirname(os.path.realpath(__file__)) + '/..' +sys.path[0] = os.path.dirname(os.path.realpath(__file__)) + '/../..' from subprocess import PIPE import getopt, signal, struct, subprocess -- 2.39.2