From 5a204a2449325e1f00591effc8f19264d2c2b498 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sat, 6 Feb 2021 13:42:39 -0600 Subject: [PATCH] xstat-cmd: copy to bup.cmd.xstat Signed-off-by: Rob Browning --- lib/{cmd/xstat-cmd.py => bup/cmd/xstat.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename lib/{cmd/xstat-cmd.py => bup/cmd/xstat.py} (98%) diff --git a/lib/cmd/xstat-cmd.py b/lib/bup/cmd/xstat.py similarity index 98% rename from lib/cmd/xstat-cmd.py rename to lib/bup/cmd/xstat.py index 4a2bffa..c20e7a0 100755 --- a/lib/cmd/xstat-cmd.py +++ b/lib/bup/cmd/xstat.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 @@ -23,7 +23,7 @@ from __future__ import absolute_import, print_function # 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__)) + '/../..' import errno, os.path, stat -- 2.39.2