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()