Changeset 6128 for TI01-discovery


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

Took out local directory references and put absolute paths where necessary

File:
1 edited

Legend:

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

    r6100 r6128  
    2020error_counter = 0 
    2121 
    22 current_dir = os.getcwd() + "/"# this is the base dir that the script is ran from 
     22#current_dir = os.getcwd() + "/"# this is the base dir that the script is ran from 
     23current_dir = '/home/badc/buildouts/oai_document_ingester/ingestAutomation-upgrade/OAIBatch/' # NOTE this is changed to the production buildout directory 
    2324logging.info("Running ingest script for all config files in the current run directory (%s)" %current_dir) 
    2425 
    2526#create file for summary report on all ingests 
    26 summaryFileName = "data/runAllIngestSummary.txt"         
     27reportingDir = '/home/badc/discovery_docs/ingestDocs/' # base dir where production reporting and output should go 
     28summaryFileName = reportingDir + 'runAllIngestSummary.txt'         
    2729summaryFile = open(summaryFileName,'w')             
    2830 
     
    4850            try: 
    4951                run_counter += 1 
    50                 ingester.processDataCentre(datacentre) 
     52                #ingester.processDataCentre(datacentre) 
    5153            except: 
    5254                logging.error("Exception thrown - detail: ") 
     
    5658 
    5759            #summarise harvest info from report doc now produced by ingester program 
    58             recOpFileName = current_dir + "data/" + datacentre + "_ingestSummary.txt" 
     60            recOpFileName = reportingDir + datacentre + "_ingestSummary.txt" 
    5961 
    6062            try: 
Note: See TracChangeset for help on using the changeset viewer.