From 54c50d1f505d2bcd01642e7780fefecfbca810f0 Mon Sep 17 00:00:00 2001 From: Christopher Teutsch Date: Fri, 3 May 2019 23:48:24 +0200 Subject: [PATCH] use pathlib properly --- crawl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl.py b/crawl.py index ecd9cae..3b44654 100755 --- a/crawl.py +++ b/crawl.py @@ -196,7 +196,7 @@ else: retrieve_date = _get_date() if args.cache_dir is not None: - filepath = pathlib.Path(os.path.abspath(args.cache_dir)) + filepath = pathlib.Path(args.cache_dir).resolve() else: filepath = pathlib.Path(appdirs.user_cache_dir('FirstDataCrawler', 'iwonder')) if not filepath.exists():