~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Martin Pool
  • Date: 2006-06-20 03:57:11 UTC
  • mto: This revision was merged to the branch mainline in revision 1798.
  • Revision ID: mbp@sourcefrog.net-20060620035711-400bb6b6bc6ff95b
Add pyflakes makefile target; fix many warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
486
486
        if base is None:
487
487
            base = os.environ.get('HOME', None)
488
488
        if base is None:
489
 
            raise BzrError('You must have one of BZR_HOME, APPDATA, or HOME set')
 
489
            raise errors.BzrError('You must have one of BZR_HOME, APPDATA, or HOME set')
490
490
        return pathjoin(base, 'bazaar', '2.0')
491
491
    else:
492
492
        # cygwin, linux, and darwin all have a $HOME directory