diff options
| -rw-r--r-- | pyramid/scripts/pserve.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/scripts/pserve.py b/pyramid/scripts/pserve.py index 155b82bdc..6737966ba 100644 --- a/pyramid/scripts/pserve.py +++ b/pyramid/scripts/pserve.py @@ -9,7 +9,7 @@ # lib/site.py import atexit -import ctypes +import ctypes. import errno import logging import optparse @@ -391,7 +391,7 @@ a real process manager for your processes like Systemd, Circus, or Supervisor. if self.options.browser: def open_browser(): - context = loadcontext(SERVER, app_spec, name=app_name, relative_to=base, + context = loadcontext(SERVER, app_spec, name=server_name, relative_to=base, global_conf=vars) url = 'http://127.0.0.1:{port}/'.format(**context.config()) time.sleep(1) |
