Beispiel #1
0
    def from_filenames(cls, initfname, outfname, logfname):
        """
        Runs analysis, using provided filenames.

        :param initfname: string, path to init file
        :param outfname: string, path to output file
        :param logfname: string, path to log file
        """
        from pybincat import mlbincat
        mlbincat.process(initfname, outfname, logfname)
        return cls.parse(outfname, logs=logfname)
Beispiel #2
0
    def from_filenames(cls, initfname, outfname, logfname):
        """
        Runs analysis, using provided filenames.

        :param initfname: string, path to init file
        :param outfname: string, path to output file
        :param logfname: string, path to log file
        """
        try:
            from pybincat import mlbincat
            mlbincat.process(initfname, outfname, logfname)
        except ImportError:
            # XXX log warning
            subprocess.call(["bincat", initfname, outfname, logfname])
        return cls.parse(outfname, logs=logfname)