INNER CODE UNIT · Python

_exec

jd/pifpaf · pifpaf/drivers/__init__.py:142

    def _exec(self, command, stdout=False, ignore_failure=False,
              stdin=None, wait_for_line=None, wait_for_port=None,
              path=[], env=None,
              forbidden_line_after_start=None,
              allow_debug=True):
        LOG.debug("executing: %s", command)

        app = command[0]

        debug = allow_debug and LOG.isEnabledFor(logging.DEBUG)

        if stdout or wait_for_line or debug:
            stdout_fd = subprocess.PIPE
        else:
            stdout_fd = subprocess.DEVNULL

        if stdin:
            stdin_fd = subprocess.PIPE

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…