Simplify Repository.cmd_runner

This commit is contained in:
Anthony Sottile 2014-05-02 22:47:23 -07:00
parent f9db2b5b06
commit c5cbd473c7
4 changed files with 24 additions and 46 deletions

View file

@ -40,7 +40,7 @@ class PrefixedCommandRunner(object):
For instance:
PrefixedCommandRunner('/tmp/foo').run(['{prefix}foo.sh', 'bar', 'baz'])
will run ['/tmpl/foo/foo.sh', 'bar', 'baz']
will run ['/tmp/foo/foo.sh', 'bar', 'baz']
"""
def __init__(self, prefix_dir, popen=subprocess.Popen, makedirs=os.makedirs):
self.prefix_dir = prefix_dir.rstrip(os.sep) + os.sep