summaryrefslogtreecommitdiff
path: root/giscanner/cachestore.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/cachestore.py')
-rw-r--r--giscanner/cachestore.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py
index 3d8e6fd6..bcac0784 100644
--- a/giscanner/cachestore.py
+++ b/giscanner/cachestore.py
@@ -45,7 +45,10 @@ def _get_versionhash():
def _get_cachedir():
if 'GI_SCANNER_DISABLE_CACHE' in os.environ:
return None
- homedir = os.environ.get('HOME')
+ if os.name == 'nt' and 'MSYSTEM' not in os.environ:
+ homedir = os.environ.get('HOMEPATH')
+ else:
+ homedir = os.environ.get('HOME')
if homedir is None:
return None
if not os.path.exists(homedir):