mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 21:34:32 +08:00
Use a Windows cache folder change from Jedi
See also 1115cbd94dcae6fb7b215c51f0407333c92c956e in Jedi and the PR in davidhalter/jedi#1575
This commit is contained in:
@@ -63,7 +63,8 @@ http://docs.python.org/3/library/sys.html#sys.implementation
|
|||||||
|
|
||||||
def _get_default_cache_path():
|
def _get_default_cache_path():
|
||||||
if platform.system().lower() == 'windows':
|
if platform.system().lower() == 'windows':
|
||||||
dir_ = os.path.join(os.getenv('LOCALAPPDATA') or '~', 'Parso', 'Parso')
|
dir_ = os.path.join(os.getenv('LOCALAPPDATA')
|
||||||
|
or os.path.expanduser('~'), 'Parso', 'Parso')
|
||||||
elif platform.system().lower() == 'darwin':
|
elif platform.system().lower() == 'darwin':
|
||||||
dir_ = os.path.join('~', 'Library', 'Caches', 'Parso')
|
dir_ = os.path.join('~', 'Library', 'Caches', 'Parso')
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user