Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/h/e/hellanzb-HEAD/Hellanzb/PostProcessor.py   hellanzb(Download)
 
            elif os.path.isdir(self.dirName):
                if not os.path.isdir(os.path.join(Hellanzb.DEST_DIR, self.category)):
                    try:
                        os.makedirs(os.path.join(Hellanzb.DEST_DIR, self.category))
                    except OSError, ose:
                        raise FatalError('Unable to create directory for category: ' + \
                                os.path.join(Hellanzb.DEST_DIR, self.category)  + \
                                ' error: ' + str(ose))                
                # A dir in the processing dir, move it to DEST
                newdir = os.path.join(Hellanzb.DEST_DIR, self.category,
                                      os.path.basename(self.dirName))
                hellaRename(newdir)
            e = time.time() - self.startTime 
            dispatchExternalHandler(ERROR, archiveName=archive,
                                    destDir=os.path.join(Hellanzb.DEST_DIR, category, archive),
                                    elapsedTime=prettyElapsed(e),
                                    parMessage='A problem occurred: %s' % pe)