From 5357aafa34d65f563e4715dc52d06eb50ae71931 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Tue, 25 Oct 2016 10:52:40 +0300 Subject: [PATCH] keep / --- files/rsync-queue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/files/rsync-queue b/files/rsync-queue index 6ef88b2..fc0507e 100755 --- a/files/rsync-queue +++ b/files/rsync-queue @@ -36,11 +36,18 @@ def setup_options(): if options.clearAll: options.clear=True if options.SRC!='': - options.SRC=os.path.abspath(options.SRC) + options.SRC=path_to_abs(options.SRC) if options.TGT!='': - options.TGT=os.path.abspath(options.TGT) + options.TGT=path_to_abs(options.TGT) return options +def path_to_abs(path): + append="" + if path.endswith("/"): + append="/" + return os.path.abspath(path)+append + + def createdb(fname): conn=sqlite3.connect(fname) db=conn.cursor()