diff options
author | Colin Walters <walters@verbum.org> | 2011-05-02 12:25:10 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2011-05-02 12:25:52 -0400 |
commit | 2330248ea37ad1251da58700ffb1ea0d578523ee (patch) | |
tree | d2111fefaa4b01b562d795cd1232745c429339fc /giscanner/cachestore.py | |
parent | 0d969f448e71beab3c67975bc40822654eb1b90a (diff) | |
download | gobject-introspection-2330248ea37ad1251da58700ffb1ea0d578523ee.tar.gz |
Add GI_SCANNER_DISABLE_CACHE environment variable
https://bugzilla.gnome.org/show_bug.cgi?id=649054
Diffstat (limited to 'giscanner/cachestore.py')
-rw-r--r-- | giscanner/cachestore.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py index 7b72b29e..44e3b04c 100644 --- a/giscanner/cachestore.py +++ b/giscanner/cachestore.py @@ -41,6 +41,8 @@ def _get_versionhash(): return hashlib.sha1(''.join(mtimes)).hexdigest() def _get_cachedir(): + if 'GI_SCANNER_DISABLE_CACHE' in os.environ: + return None homedir = os.environ.get('HOME') if homedir is None: return None |