Changeset 6130


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

Location:
TI01-discovery/branches/ingestAutomation-upgrade/OAIBatch
Files:
2 edited

Legend:

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

    r6099 r6130  
    3030                         
    3131        # The directory to put things for a tape backup (should already exist) 
    32         BACKUP_DIR = '/disks/glue1/oaiBackup/' 
     32        BACKUP_DIR = '/home/badc/discovery_docs/ingestDocs/backup/' 
    3333         
    3434        #NDG_redirect_URL = 'http://ndg3beta.badc.rl.ac.uk/URL_redirect_NDG3/ndgURLredirect/redirect?url=' 
     
    220220                self._NDG_dataProvider = False 
    221221 
    222                 datacentre_config_filename = 'datacentre_config/' + datacentre + "_config.properties" 
     222                #note changed to production buildout path 
     223                datacentre_config_filename = '/home/badc/buildouts/oai_document_ingester/ingestAutomation-upgrade/OAIBatch/datacentre_config/' + datacentre + "_config.properties" 
    223224                logging.info("Retrieving data from datacentre config file, " + datacentre_config_filename) 
    224225                 
  • 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.