Changeset 6189 for TI01-discovery


Ignore:
Timestamp:
18/12/09 10:28:59 (10 years ago)
Author:
sdonegan
Message:

Added ability to take processing info from a config file (not in svn for obvious reasons!).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/branches/ingestAutomation-upgrade/OAIBatch/feeddocumentingester.py

    r6162 r6189  
    166166                 
    167167                #setup log file for checking history of ingests etc 
    168                 self.summaryFileName = "/home/badc/discovery_docs/ingestDocs/data/FeedIngestSummary.txt"         
     168                #self.summaryFileName = "/home/badc/discovery_docs/ingestDocs/data/FeedIngestSummary.txt"        
     169                self.summaryFileName = self.processingDict['reporting_directory'] + 'FeedIngestSummary.txt' 
     170                        
    169171                self.summaryFile = open(self.summaryFileName,'a')     
    170172                 
     
    298300 
    299301                #self._base_dir = os.getcwd() + "/" # this is the base dir that the script is ran from 
    300                 self._code_dir = "/home/badc/buildouts/oai_document_ingester/ingestAutomation-upgrade/OAIBatch/" # this is the base dir that the script is ran from 
    301                 self._base_dir = "/home/badc/discovery_docs/ingestDocs/" 
    302                  
    303  
     302                 
     303                #now use config info 
     304                self.processingDict = self.getProcessingConfig('/home/badc/buildouts/oai_document_ingester/ingestAutomation-upgrade/OAIBatch/oai_document_ingester.config') 
     305                 
     306                #self._code_dir = "/home/badc/buildouts/oai_document_ingester/ingestAutomation-upgrade/OAIBatch/" # this is the base dir that the script is ran from 
     307                #self._base_dir = "/home/badc/discovery_docs/ingestDocs/" 
     308                 
     309                self._code_dir = self.processingDict['code_directory'] 
     310                self._base_dir = self.processingDict['base_directory'] 
    304311                 
    305312                 
Note: See TracChangeset for help on using the changeset viewer.