Hi Gary,
Nice branch; thanks for this. I'll merge it presently with the master trunk.
363 + try: 364 + return subprocess.call(['buildslave', 'start', buildbot_dir]) 365 + except OSError: 366 + return subprocess.call(['buildbot', 'start', buildbot_dir])
Instead of this you could do something like this:
def get_buildslave_command(): if subprocess.call(['which', 'buildslave']) == 0: return 'buildslave' else: return 'buildbot'
and then call get_buildslave_command() where you need it.
« Back to merge proposal
Hi Gary,
Nice branch; thanks for this. I'll merge it presently with the master trunk.
363 + try: call([' buildslave' , 'start', buildbot_dir]) call([' buildbot' , 'start', buildbot_dir])
364 + return subprocess.
365 + except OSError:
366 + return subprocess.
Instead of this you could do something like this:
def get_buildslave_ command( ): call([' which', 'buildslave']) == 0:
if subprocess.
return 'buildslave'
else:
return 'buildbot'
and then call get_buildslave_ command( ) where you need it.