def runseq(filename=None): if filename == None or filename == "": filename = askfilename() if filename == "": return B = fileReadLines(filename) newlist = [] for item in B: newlist.append(item.strip()) runargs = [] for item in newlist: path, base = os.path.split(item) if path == '': path = '.' arg = (path, [base]) runargs.append(arg) if not GG.prefs.savelogfile: # turn on the log file for sequence GB.outstream.uselogfile = 1 GB.errstream.uselogfile = 1 spiderBatch.runbatch(runargs) if not GG.prefs.savelogfile: # turn off the log file if desired GB.outstream.uselogfile = 0 GB.errstream.uselogfile = 0
def runseq(filename=None): if filename == None or filename == "": filename = askfilename() if filename == "": return B = fileReadLines(filename) newlist = [] for item in B: newlist.append(item.strip()) runargs = [] for item in newlist: path,base = os.path.split(item) if path == '': path = '.' arg = (path, [base]) runargs.append(arg) if not GG.prefs.savelogfile: # turn on the log file for sequence GB.outstream.uselogfile = 1 GB.errstream.uselogfile = 1 spiderBatch.runbatch(runargs) if not GG.prefs.savelogfile: # turn off the log file if desired GB.outstream.uselogfile = 0 GB.errstream.uselogfile = 0
def runbatch(self): " saves, quits, then runs batch file " res = self.save(quit=0) #print "spiderBatform.runbatch.res: %s" % str(res) if res == 'update': return dir = self.batobj.dir cmdlist = [self.batobj.filename] #GG.topwindow.after(500,spiderBatch.runbatch([dir,cmdlist])) spiderBatch.runbatch([dir, cmdlist]) self.localquit()
def runbatch(self): " saves, quits, then runs batch file " res = self.save(quit=0) #print "spiderBatform.runbatch.res: %s" % str(res) if res == 'update': return dir = self.batobj.dir cmdlist = [self.batobj.filename] #GG.topwindow.after(500,spiderBatch.runbatch([dir,cmdlist])) spiderBatch.runbatch([dir,cmdlist]) self.localquit()
def runBatch(self, cmdlist): spiderBatch.runbatch([self.dialog.dir, cmdlist])