예제 #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
    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
    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
    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
 def set_option(self):
     """Set options"""
     Application.set_option(self)
예제 #8
0
 def set_option(self):
     """Set options"""
     Application.set_option(self)