summaryrefslogtreecommitdiff
path: root/pypi.wsgi
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-06-07 20:22:03 -0400
committerDonald Stufft <donald@stufft.io>2013-06-07 20:22:03 -0400
commit3b94f2101d7530ae9ed0aafcccd10e3b40457a75 (patch)
treefd290fbddbf9b0db0679313a33f33685ddb5d2e2 /pypi.wsgi
parente04d05e51577e5b1a047304a90951e90fd0a209c (diff)
downloaddecorator-3b94f2101d7530ae9ed0aafcccd10e3b40457a75.tar.gz
Allow pointing to a different configuration file via envvar
Diffstat (limited to 'pypi.wsgi')
-rw-r--r--pypi.wsgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/pypi.wsgi b/pypi.wsgi
index 48a2220..3b360dd 100644
--- a/pypi.wsgi
+++ b/pypi.wsgi
@@ -12,7 +12,7 @@ from functools import partial
store.keep_conn = True
-CONFIG_FILE = os.path.join(prefix, 'config.ini')
+CONFIG_FILE = os.environ.get("PYPI_CONFIG", os.path.join(prefix, "config.ini"))
class Request: