source: TI01-Discovery-service-BUILDOUTS/trunk/ndg-DiscoveryIngestion-service-MEDIN-development/python2.5.1 @ 6665

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI01-Discovery-service-BUILDOUTS/trunk/ndg-DiscoveryIngestion-service-MEDIN-development/python2.5.1@6665
Revision 6665, 2.2 KB checked in by sdonegan, 9 years ago (diff)

Config files and scripts used to run successful MEDIN ingest

  • Property svn:executable set to *
Line 
1#!/usr/bin/python
2
3import sys
4
5sys.path[0:0] = [
6  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/eggs/ndgCommon-0.1.1.dev_r6648-py2.5.egg',
7  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/eggs/setuptools-0.6c11-py2.5.egg',
8  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/eggs/PyGreSQL-3.8.1-py2.5-linux-x86_64.egg',
9  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/eggs/oai_document_ingester_MEDIN-0.1.0.dev_r6026-py2.5.egg',
10  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/ingestAutomation-upgrade/OAIBatch',
11  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/eggs/csml-2.1b_r3917-py2.5.egg',
12  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/eggs/cdat_lite-5.2-py2.5-linux-x86_64.egg',
13  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/eggs/EggEnv-0.1-py2.5.egg',
14  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/eggs/feedparser-4.1-py2.5.egg',
15  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/eggs/numpy-1.4.0-py2.5-linux-x86_64.egg',
16  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/eggs/httplib2-0.6.0-py2.5.egg',
17  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/eggs/ZSI-2.0_rc3-py2.5.egg',
18  '/misc/glue1/sdonegan/NDG3_workspace/buildouts/oai_document_ingester_MEDIN/eggs/PyXML-0.8.4-py2.5-linux-x86_64.egg',
19  ]
20
21_interactive = True
22if len(sys.argv) > 1:
23    _options, _args = __import__("getopt").getopt(sys.argv[1:], 'ic:m:')
24    _interactive = False
25    for (_opt, _val) in _options:
26        if _opt == '-i':
27            _interactive = True
28        elif _opt == '-c':
29            exec _val
30        elif _opt == '-m':
31            sys.argv[1:] = _args
32            _args = []
33            __import__("runpy").run_module(
34                 _val, {}, "__main__", alter_sys=True)
35
36    if _args:
37        sys.argv[:] = _args
38        __file__ = _args[0]
39        del _options, _args
40        execfile(__file__)
41
42if _interactive:
43    del _interactive
44    __import__("code").interact(banner="", local=globals())
Note: See TracBrowser for help on using the repository browser.