INNER CODE UNIT · Python

log_subprocess

BigDataBiology/SemiBin · SemiBin/main.py:1468

def log_subprocess(event, *args, **kwargs):
    if event == 'subprocess.Popen':
        (executable, args, _cwd, _env) = args[0]
        logger = logging.getLogger('SemiBin2')
        logger.debug(f'Running command: {executable} (full command line: `{" ".join(args)}`)')


def main2(raw_args=None, is_semibin2=True):
    if not is_semibin2:
        raise NotImplementedError(f'SemiBin 1 is no longer supported in SemiBin v{__version__}.')
    import tempfile

    if raw_args is None:
        raw_args = sys.argv[1:]
    args = parse_args(raw_args)

    logger = logging.getLogger('SemiBin2')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…