From f6859538b0979f88d9d60395117150755d27fbf2 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 26 Jul 2020 13:03:58 +0200 Subject: [PATCH] Simplify a cache path Co-authored-by: Batuhan Taskaya --- parso/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parso/cache.py b/parso/cache.py index dd0f496..1ced9ac 100644 --- a/parso/cache.py +++ b/parso/cache.py @@ -65,7 +65,7 @@ See: http://docs.python.org/3/library/sys.html#sys.implementation def _get_default_cache_path(): if platform.system().lower() == 'windows': - dir_ = Path(os.getenv('LOCALAPPDATA') or os.path.expanduser('~'), 'Parso', 'Parso') + dir_ = Path(os.getenv('LOCALAPPDATA') or '~', 'Parso', 'Parso') elif platform.system().lower() == 'darwin': dir_ = Path('~', 'Library', 'Caches', 'Parso') else: