/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/externalcommand.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 23:19:12 UTC
  • mfrom: (7180 work)
  • mto: This revision was merged to the branch mainline in revision 7294.
  • Revision ID: jelmer@jelmer.uk-20181116231912-e043vpq22bdkxa6q
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        bzrpath = os.environ.get('BZRPATH', '')
36
36
 
37
37
        for dir in bzrpath.split(os.pathsep):
38
 
            ## Empty directories are not real paths
 
38
            # Empty directories are not real paths
39
39
            if not dir:
40
40
                continue
41
41
            # This needs to be os.path.join() or windows cannot
46
46
 
47
47
        return None
48
48
 
49
 
 
50
49
    def __init__(self, path):
51
50
        self.path = path
52
51
 
63
62
        m = 'external command from %s\n\n' % self.path
64
63
        pipe = os.popen('%s --help' % self.path)
65
64
        return m + pipe.read()
66