source: TI01-Discovery-service-BUILDOUTS/trunk/ndg-Redirection-service/wsgi @ 6555

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI01-Discovery-service-BUILDOUTS/trunk/ndg-Redirection-service/wsgi@6555
Revision 6555, 1.7 KB checked in by sdonegan, 11 years ago (diff)

NDG redirect service configs etc at time of NDG3 upgrade to ndg.nerc.ac.uk

  • Property svn:executable set to *
Line 
1import sys
2syspaths = [
3    '/usr/local/ndg-redirect/eggs/ows_common-0.1dev_r2969-py2.5.egg',
4    '/usr/local/ndg-redirect/eggs/ndgCommon-0.1.1.dev_r5997-py2.5.egg',
5    '/usr/local/lib64/python2.5/site-packages/setuptools-0.6c11-py2.5.egg',
6    '/usr/local/ndg-redirect/eggs/Pylons-0.9.6.2-py2.5.egg',
7    '/usr/local/ndg-redirect/eggs/PyGreSQL-3.8.1-py2.5-linux-x86_64.egg',
8    '/usr/local/ndg-redirect/eggs/PasteScript-1.7.3-py2.5.egg',
9    '/usr/local/ndg-redirect/eggs/WebHelpers-0.3.2-py2.5.egg',
10    '/usr/local/ndg-redirect/eggs/Routes-1.7.3-py2.5.egg',
11    '/usr/local/ndg-redirect/eggs/ndgRedirect-1.0.0dev_r5460-py2.5.egg',
12    '/usr/local/ndg-redirect/eggs/simplejson-2.0.9-py2.5-linux-x86_64.egg',
13    '/usr/local/ndg-redirect/eggs/PasteDeploy-1.3.3-py2.5.egg',
14    '/usr/local/ndg-redirect/eggs/Paste-1.7.2-py2.5.egg',
15    '/usr/local/ndg-redirect/eggs/Mako-0.2.5-py2.5.egg',
16    '/usr/local/ndg-redirect/eggs/nose-0.11.1-py2.5.egg',
17    '/usr/local/ndg-redirect/eggs/decorator-3.1.2-py2.5.egg',
18    '/usr/local/ndg-redirect/eggs/FormEncode-1.2.2-py2.5.egg',
19    '/usr/local/ndg-redirect/eggs/Beaker-1.4.2-py2.5.egg',
20    '/usr/local/ndg-redirect/eggs/httplib2-0.5.0-py2.5.egg',
21    '/usr/local/ndg-redirect/eggs/feedparser-4.1-py2.5.egg',
22    '/usr/local/ndg-redirect/eggs/ZSI-2.0_rc3-py2.5.egg',
23    '/usr/local/ndg-redirect/eggs/PyXML-0.8.4-py2.5-linux-x86_64.egg',
24    '/usr/local/ndg-redirect/config/redirect.config',
25    ]
26
27for path in reversed(syspaths):
28    if path not in sys.path:
29        sys.path[0:0]=[path]
30
31
32from paste.deploy import loadapp
33from paste.script.util.logging_config import fileConfig
34
35configfile="/usr/local/ndg-redirect/development.ini"
36fileConfig(configfile)
37application = loadapp("config:" + configfile)
Note: See TracBrowser for help on using the repository browser.