~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Patch Queue Manager
  • Date: 2014-02-12 18:22:22 UTC
  • mfrom: (6589.2.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20140212182222-beouo25gaf1cny76
(vila) The XDG Base Directory Specification uses the XDG_CACHE_HOME,
 not XDG_CACHE_DIR. (Andrew Starr-Bochicchio)

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: