コード例 #1
0
    def set_option(self):
        """Set the options"""

        Application.set_option(self)

        if len(self.args) == 0:
            error("Pcap file must be given!")
            sys.exit(1)
コード例 #2
0
    def set_option(self):
        """Set the options"""

        Application.set_option(self)

        if len(self.args) == 0:
            error("Pcap file must be given!")
            sys.exit(1)
コード例 #3
0
ファイル: tex2pdf.py プロジェクト: aoimidori27/tcp-eval
    def set_option(self):
        """Set options"""

        Application.set_option(self)

        # correct numbers of arguments?
        if len(self.args) == 0:
            self.parser.error("incorrect number of arguments.")

        # latex object
        self._latex = UmLatex(self.options.texfile, self.options.outdir,
                              self.options.force, self.options.debug)
コード例 #4
0
ファイル: flow_plotter.py プロジェクト: aoimidori27/tcp-eval
    def set_option(self):
        """Set options"""

        Application.set_option(self)

        if len(self.args) < 1:
            error("no input files, stop.")
            sys.exit(1)

        if not os.path.exists(self.options.outdir):
            info("%s does not exist, creating. " % self.options.outdir)
            os.mkdir(self.options.outdir)

        if self.options.graphics:
            self.graphics_array = self.options.graphics.split(',')
        else:
            self.graphics_array = ['tput','cwnd','rtt','segments']
コード例 #5
0
ファイル: gpl2pdf.py プロジェクト: aoimidori27/tcp-eval
    def set_option(self):
        """Set options"""

        Application.set_option(self)

        # correct numbers of arguments?
        if len(self.args) == 0:
            self.parser.error("incorrect number of arguments")

        # latex object
        self._latex = UmLatex(self.options.texfile, self.options.outdir,
                              self.options.force, self.options.debug, tikz = False)

        # use sans serif font and set the correct font size
        self._latex.setDocumentclass("scrartcl", "fontsize=%spt" %self.options.fontsize)
        self._latex.addSetting(r"\renewcommand{\familydefault}{\sfdefault}")
        self._latex.addSetting(r"\usepackage{sfmath}")
コード例 #6
0
    def set_option(self):
        """Set options"""

        Application.set_option(self)

        # correct numbers of arguments?
        if len(self.args) == 0:
            self.parser.error("incorrect number of arguments")

        # latex object
        self._latex = UmLatex(self.options.texfile,
                              self.options.outdir,
                              self.options.force,
                              self.options.debug,
                              tikz=False)

        # use sans serif font and set the correct font size
        self._latex.setDocumentclass("scrartcl",
                                     "fontsize=%spt" % self.options.fontsize)
        self._latex.addSetting(r"\renewcommand{\familydefault}{\sfdefault}")
        self._latex.addSetting(r"\usepackage{sfmath}")
コード例 #7
0
ファイル: rpcserver.py プロジェクト: Puneeth-n/tcp-eval
 def set_option(self):
     """Set options"""
     Application.set_option(self)
コード例 #8
0
ファイル: rpcserver.py プロジェクト: Puneeth-n/tcp-eval
 def set_option(self):
     """Set options"""
     Application.set_option(self)