Exemplo n.º 1
0
def run_shenidam(base_fn,track_fns,output_fns):
    try:
        stderr_forward = shenidam.forward(sys.stderr) if VERBOSE else shenidam.do_nothing;
        message_handler = shenidam.message_handler_print(sys.stderr) if not QUIET else shenidam.do_nothing
        cmd,res,stdin,stderr = shenidam.Shenidam(SHENIDAM,SHENIDAM_PARAMS,message_handler,stderr_forward)(base_fn,track_fns,output_fns)
        if res != 0:
            raise_subprocess_error(cmd,stderr,not VERBOSE)
    except OSError as e:
        raise_subprocess_error(cmd,e)
Exemplo n.º 2
0
def run_command(cmd):
    
    try:
        stderr_forward = shenidam.forward(sys.stderr) if VERBOSE else shenidam.do_nothing;
        
        res,stdout,stderr = shenidam.ProcessRunner(cmd,stderr_forward,stderr_forward)()
        if res != 0:
            raise_subprocess_error(cmd,stderr,not VERBOSE)
    except OSError as e:
        raise_subprocess_error(cmd,e)
Exemplo n.º 3
0
def run_command(cmd):

    try:
        stderr_forward = shenidam.forward(
            sys.stderr) if VERBOSE else shenidam.do_nothing

        res, stdout, stderr = shenidam.ProcessRunner(cmd, stderr_forward,
                                                     stderr_forward)()
        if res != 0:
            raise_subprocess_error(cmd, stderr, not VERBOSE)
    except OSError as e:
        raise_subprocess_error(cmd, e)
Exemplo n.º 4
0
def run_shenidam(base_fn, track_fns, output_fns):
    try:
        stderr_forward = shenidam.forward(
            sys.stderr) if VERBOSE else shenidam.do_nothing
        message_handler = shenidam.message_handler_print(
            sys.stderr) if not QUIET else shenidam.do_nothing
        cmd, res, stdin, stderr = shenidam.Shenidam(SHENIDAM, SHENIDAM_PARAMS,
                                                    message_handler,
                                                    stderr_forward)(base_fn,
                                                                    track_fns,
                                                                    output_fns)
        if res != 0:
            raise_subprocess_error(cmd, stderr, not VERBOSE)
    except OSError as e:
        raise_subprocess_error(cmd, e)