From 6d807081722115ad11b057a84149ea74b8be90db Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Sat, 11 May 2024 18:15:40 +0200 Subject: [PATCH] fix: non-abs path in config --- client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.py b/client.py index aed351c..9c07524 100644 --- a/client.py +++ b/client.py @@ -281,6 +281,10 @@ if __name__ == "__main__": install_dir = config_loaded["Install dir:"] backend_type = config_loaded["Select option:"] + # fix abs path if not set # + if os.path.abspath(install_dir): + install_dir = os.path.join(os.getcwd(), install_dir) + # get the secod part of the server string, then split once at first / to get path and prepend / again# if backend_type == "FTP/FTPS": remote_root_dir = "/" + config_loaded["Server/Path:"].split("://")[1].split("/", 1)[1]