def handleLoad(self, version): log.debug('handleLoad: %s' % version.left) self.version = version if not version.left or not os.path.isfile(version.left): log.info('File not found: %s' % version.left) self.stop() self.load(Phonon.MediaSource(version.left)) self.main.emit(QtCore.SIGNAL('totalTime (PyQt_PyObject)'), self.totalTime())
cmd = "%s [ %s %s ] %s -o %s" % (config.RV_RVIO_PATH, _in, ' '.join(perSeqOpts), ' '.join(optionStrings), _out) log.debug('cmd: %s' % cmd) # check to make sure base dir exists _basedir = os.path.dirname(_out) if not os.path.isdir(_basedir): try: os.makedirs(_basedir) except EnvironmentError, e: log.error(traceback.format_exc()) if not os.path.exists(_basedir): return # execute the command if _dryRun: log.info(cmd) else: os.system(cmd) return _out def main(args): """ Creates daily. :param args: ArgParse args object. """ left = None right = None # options dict for makeMov