megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
comparison dev-vcs/kallithea/files/production.wsgi @ 130:2ce94546a682
Kallithea: adding WSGI, adding .keep file to data directory
author | Daniel Neugebauer <dneuge@energiequant.de> |
---|---|
date | Sun, 10 Aug 2014 22:33:43 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
129:4a630613e8cd | 130:2ce94546a682 |
---|---|
1 import os | |
2 os.environ["HGENCODING"] = "UTF-8" | |
3 os.environ['PYTHON_EGG_CACHE'] = '###DATADIR###/.egg-cache' | |
4 | |
5 # sometimes it's needed to set the curent dir | |
6 os.chdir('###DATADIR###/') | |
7 | |
8 import site | |
9 site.addsitedir("###BASEDIR###/lib/python2.7/site-packages") | |
10 | |
11 from paste.deploy import loadapp | |
12 from paste.script.util.logging_config import fileConfig | |
13 | |
14 fileConfig('###CONFDIR###/production.ini') | |
15 application = loadapp('config:###CONFDIR###/production.ini') |