From 3b55122739493f3cc903411e17e65367925d93a2 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Fri, 12 Feb 2021 13:51:46 -0600 Subject: [PATCH] damage-cmd: copy to bup.cmd.damage Signed-off-by: Rob Browning --- lib/{cmd/damage-cmd.py => bup/cmd/damage.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename lib/{cmd/damage-cmd.py => bup/cmd/damage.py} (93%) diff --git a/lib/cmd/damage-cmd.py b/lib/bup/cmd/damage.py similarity index 93% rename from lib/cmd/damage-cmd.py rename to lib/bup/cmd/damage.py index cc2fb77..bb74a2b 100755 --- a/lib/cmd/damage-cmd.py +++ b/lib/bup/cmd/damage.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__)) + '/../..'] import random -- 2.39.2