Ejemplo n.º 1
0
    def _startRecoveryInThred(self, status):
        FileExtractorCore.startSearch(status)
        self._mytimer.Stop()

        now = time.time()
        self._timeAllTogether += (now - self.startTime)
        self._updateValuesRecovery(None)
        self.FindWindowById(wx.ID_FORWARD).Enable()
        self.FindWindowById(wx.ID_BACKWARD).Enable()
Ejemplo n.º 2
0
def startCLI(argv):
    """
    Starts the CLI application
    
    An L{ExecutionSettings} object is intialised and passed to the method L{handleArguments}, which
    assigns the appropriate values. Afterwards, the FileExtractor core is initialised and
    started with the given source file.
    
    @param argv: List of arguments processed by the application (CL arguments)
    """
    ret, status = handleArguments(argv)
    if ret==0:
        sys.exit()
        
    if ret == 1:
        signatures.printSignatures(status.settings.getActiveSignatures())
        sys.exit()
    
    if FileExtractorCore.init(status) < 0:
        sys.exit()

    printHeader(status)
    signs, counter = FileExtractorCore.startSearch(status)
    printResults(signs, counter, status.getRunTimeForNumber(0))