33
34
bzrpath = os.environ.get('BZRPATH', '')
35
36
for dir in bzrpath.split(os.pathsep):
41
40
path = os.path.join(dir, cmd)
43
42
return ExternalCommand(path)
47
47
def __init__(self, path):
53
55
def run(self, *args, **kwargs):
54
56
raise NotImplementedError('should not be called on %r' % self)
57
60
return os.spawnv(os.P_WAIT, self.path, [self.path] + argv)
60
64
m = 'external command from %s\n\n' % self.path
61
65
pipe = os.popen('%s --help' % self.path)