diff options
| author | ianb <devnull@localhost> | 2005-05-04 00:04:41 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-05-04 00:04:41 +0000 |
| commit | 09e95fe6fa6791a2b85d1c39277127778cfb1be6 (patch) | |
| tree | 254fe3c0566c4e04c1960d6eccea28c8caff4364 /paste/server.py | |
| parent | 3f4349bcbf3ec9412f6184f0d8cb79f77694418f (diff) | |
| download | paste-09e95fe6fa6791a2b85d1c39277127778cfb1be6.tar.gz | |
Added a globally accessible, threadsafe configuration object (paste.CONFIG)
Diffstat (limited to 'paste/server.py')
| -rwxr-xr-x | paste/server.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/paste/server.py b/paste/server.py index c262108..7121b67 100755 --- a/paste/server.py +++ b/paste/server.py @@ -31,6 +31,7 @@ import sys import os from paste import reloader from paste import wsgilib +from paste import CONFIG # This way you can run this out of a checkout, and we'll fix up # the path... @@ -257,6 +258,9 @@ def make_app(conf): print 'Use publish_dir instead' print "You must provide publish_dir or publish_app" sys.exit(2) + # @@: we can't do this when we support making multiple applications + # with this function: + CONFIG.push_process_config(conf) return config_middleware(app, conf) def restart_with_reloader(conf): |
