(self, stdin=None)
Run tsp

        Args:
            in_plugin : List with input plugin command to be used by tsp.
            stdin : Stdin to attach to the tsp process.

        Rerturns:
            Boolean indicating whether the process is running succesfully.
Run tsp
Run tsp
def run(self, stdin=None):
        """Run tsp

        Args:
            in_plugin : List with input plugin command to be used by tsp.
            stdin : Stdin to attach to the tsp process.

        Rerturns:
            Boolean indicating whether the process is running succesfully.

        """
        # Create a .tsduck.lastcheck file on the home directory to skip the
        # TSDuck version check.
        Path(os.path.join(util.get_home_dir(), ".tsduck.lastcheck")).touch()

        # When tsdump is enabled, hook tsp and tspdump through a pipe file (tsp
        # on the write side and tsdump on the read side)
        if (self.ts_dump):
            info_pipe = util.Pipe()
            stdout = info_pipe.w_fo
        else:
            stdout = None

        self.proc = subprocess.Popen(self.cmd, stdin=stdin, stdout=stdout)

        if (self.ts_dump):
            tsdump_cmd = ['tsdump']
            tsdump_cmd.extend(self.ts_dump_opts)
            self.dump_proc = subprocess.Popen(tsdump_cmd, stdin=info_pipe.r_fo)
def run ( self , stdin = None ) : # Create a .tsduck.lastcheck file on the home directory to skip the # TSDuck version check. Path ( os . path . join ( util . get_home_dir ( ) , ".tsduck.lastcheck" ) ) . touch ( ) # When tsdump is enabled, hook tsp and tspdump through a pipe file (tsp # on the write side and tsdump on the read side) if ( self . ts_dump ) : info_pipe = util . Pipe ( ) stdout = info_pipe . w_fo else : stdout = None self . proc = subprocess . Popen ( self . cmd , stdin = stdin , stdout = stdout ) if ( self . ts_dump ) : tsdump_cmd = [ 'tsdump' ] tsdump_cmd . extend ( self . ts_dump_opts ) self . dump_proc = subprocess . Popen ( tsdump_cmd , stdin = info_pipe . r_fo )