installer.py
def execute_cmd(self, cmd, shell=False, notify=False):
        """Execute cmd and save output to log file"""
        logger.info('Executing command: %s', cmd)
        try:
            si = subprocess.STARTUPINFO()
            si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
            output = subprocess.check_output(
                cmd,
                stdin=subprocess.PIPE,
                stderr=subprocess.PIPE,
                startupinfo=si,
                shell=shell)
            logger.info(output)
        except subprocess.CalledProcessError:
            self._log_traceback(notify=notify)
        finally:
            self.finished.emit()
Execute cmd and save output to log file
Execute cmd and save output to log file
Execute cmd and save output to log file
def execute_cmd(self, cmd, shell=False, notify=False):
        logger.info('Executing command: %s', cmd)
        try:
            si = subprocess.STARTUPINFO()
            si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
            output = subprocess.check_output(
                cmd,
                stdin=subprocess.PIPE,
                stderr=subprocess.PIPE,
                startupinfo=si,
                shell=shell)
            logger.info(output)
        except subprocess.CalledProcessError:
            self._log_traceback(notify=notify)
        finally:
            self.finished.emit()
def execute_cmd ( self , cmd , shell = False , notify = False ) : logger . info ( 'Executing command: %s' , cmd ) try : si = subprocess . STARTUPINFO ( ) si . dwFlags |= subprocess . STARTF_USESHOWWINDOW output = subprocess . check_output ( cmd , stdin = subprocess . PIPE , stderr = subprocess . PIPE , startupinfo = si , shell = shell ) logger . info ( output ) except subprocess . CalledProcessError : self . _log_traceback ( notify = notify ) finally : self . finished . emit ( )
Execute cmd and save output to log file
Execute cmd and save output to log file
"""Execute cmd and save output to log file"""
self
cmd
shell
notify