setupbase.py
def run(cmd, **kwargs):
    """Echo a command before running it.  Defaults to repo as cwd"""
    log.info('> ' + list2cmdline(cmd))
    kwargs.setdefault('cwd', HERE)
    kwargs.setdefault('shell', os.name == 'nt')
    if not isinstance(cmd, (list, tuple)) and os.name != 'nt':
        cmd = shlex.split(cmd)
    cmd[0] = which(cmd[0])
    return subprocess.check_call(cmd, **kwargs)
def run(cmd, **kwargs):
    """Echo a command before running it.  Defaults to repo as cwd"""
    log.info('> ' + list2cmdline(cmd))
    kwargs.setdefault('cwd', HERE)
    kwargs.setdefault('shell', os.name == 'nt')
    if not isinstance(cmd, (list, tuple)) and os.name != 'nt':
        cmd = shlex.split(cmd)
    cmd[0] = which(cmd[0])
    return subprocess.check_call(cmd, **kwargs)
def run ( cmd , * * kwargs ) : log . info ( '> ' + list2cmdline ( cmd ) ) kwargs . setdefault ( 'cwd' , HERE ) kwargs . setdefault ( 'shell' , os . name == 'nt' ) if not isinstance ( cmd , ( list , tuple ) ) and os . name != 'nt' : cmd = shlex . split ( cmd ) cmd [ 0 ] = which ( cmd [ 0 ] ) return subprocess . check_call ( cmd , * * kwargs )
Echo a command before running it.  Defaults to repo as cwd
Echo a command before running it . Defaults to repo as cwd