'Run task splitting commands locally.'

def __prepare_input_files_locally(self, job_wrapper):

    prepare_input_files_cmds = getattr(job_wrapper, 'prepare_input_files_cmds', None)
    if (prepare_input_files_cmds is not None):
        for cmd in prepare_input_files_cmds:
            if (0 != os.system(cmd)):
                raise Exception(('Error    running    file    staging    command:    %s' % cmd))
        job_wrapper.prepare_input_files_cmds = None
