Ignore:
Timestamp:
15/12/09 10:43:56 (10 years ago)
Author:
sdonegan
Message:

Updated handling of directories - put in absolute production paths in badc user buildout

File:
1 edited

Legend:

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

    r5600 r6130  
    4444                self._error_messages = '' 
    4545                self.dataCentre = dataCentre 
    46                 self._base_dir = os.getcwd() + "/" # this is the base dir that the script is ran from 
     46                #self._base_dir = os.getcwd() + "/" # this is the base dir that the script is ran from 
     47 
     48                #this is the absolute path to the production ingest dir for ndg3 
     49                self._code_dir = "/home/badc/buildouts/oai_document_ingester/ingestAutomation-upgrade/OAIBatch/" # this is the base dir that the script is ran from 
     50                self._base_dir = "/home/badc/discovery_docs/ingestDocs/" 
     51                 
    4752                self._setupDataCentreDirs() 
    4853                 
    4954                #Change os directory to that with the harvested documents in it. 
    5055                os.chdir(self._base_dir) 
    51                  
    52                                  
     56                                                 
    5357                # - to run on Windows under cygwin, use the following 
    5458                #os.putenv('PATH', 'C:\\opt\\cygwin\\bin') 
    5559                 
    56  
    5760                self.getConfigDetails(dataCentre) 
    5861                # override default settings with input keyword values, if set 
Note: See TracChangeset for help on using the changeset viewer.