/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-08-23 01:15:41 UTC
  • mfrom: (7520.1.4 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200823011541-nv0oh7nzaganx2qy
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/389690

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
import os
23
23
 
24
 
from bzrlib.commands import Command
 
24
from .commands import Command
25
25
 
26
26
 
27
27
class ExternalCommand(Command):
33
33
        bzrpath = os.environ.get('BZRPATH', '')
34
34
 
35
35
        for dir in bzrpath.split(os.pathsep):
36
 
            ## Empty directories are not real paths
 
36
            # Empty directories are not real paths
37
37
            if not dir:
38
38
                continue
39
39
            # This needs to be os.path.join() or windows cannot
44
44
 
45
45
        return None
46
46
 
47
 
 
48
47
    def __init__(self, path):
49
48
        self.path = path
50
49
 
61
60
        m = 'external command from %s\n\n' % self.path
62
61
        pipe = os.popen('%s --help' % self.path)
63
62
        return m + pipe.read()
64