From c2e6b313571b46884ebb1c65727130020c312ad6 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 23 Jan 2016 15:05:53 +0100 Subject: calcurse-caldav: Ensure path always starts/ends with a slash Signed-off-by: Lukas Fleischer --- contrib/caldav/calcurse-caldav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py index 284bbb4..0b1499d 100755 --- a/contrib/caldav/calcurse-caldav.py +++ b/contrib/caldav/calcurse-caldav.py @@ -332,7 +332,7 @@ except FileNotFoundError as e: die('Configuration file not found: %s' % (configfn)) hostname = config.get('General', 'HostName') -path = config.get('General', 'Path').rstrip('/') + '/' +path = '/' + config.get('General', 'Path').strip('/') + '/' if config.has_option('General', 'InsecureSSL'): insecure_ssl = config.getboolean('General', 'InsecureSSL') -- cgit v1.2.3