~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Andrew Starr-Bochicchio
  • Date: 2014-01-23 19:00:51 UTC
  • mto: This revision was merged to the branch mainline in revision 6591.
  • Revision ID: a.starr.b@gmail.com-20140123190051-r14k1kregolynkn6
The XDG Base Directory Specification uses the XDG_CACHE_HOME XDG_CACHE_HOME, not XDG_CACHE_DIR.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1557
1557
def xdg_cache_dir():
1558
1558
    # See http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html
1559
1559
    # Possibly this should be different on Windows?
1560
 
    e = os.environ.get('XDG_CACHE_DIR', None)
 
1560
    e = os.environ.get('XDG_CACHE_HOME', None)
1561
1561
    if e:
1562
1562
        return e
1563
1563
    else: