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