Commit e2996251 authored by Stefan H. Holek's avatar Stefan H. Holek

mcdonc got a few lines wrong while merging.

parent 212a4a95
...@@ -28,9 +28,6 @@ def configure(configfile): ...@@ -28,9 +28,6 @@ def configure(configfile):
configure('/path/to/configfile'); import Zope; app = Zope.app() """ configure('/path/to/configfile'); import Zope; app = Zope.app() """
import Zope.Startup import Zope.Startup
starter = Zope.Startup.get_starter() starter = Zope.Startup.get_starter()
if not configfile:
import os
configfile = os.getenv("ZOPE_CONFIG")
opts = _setconfig(configfile) opts = _setconfig(configfile)
starter.setConfiguration(opts.configroot) starter.setConfiguration(opts.configroot)
starter.setupSecurityOptions() starter.setupSecurityOptions()
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
# old behavior is likely to cause problems as ZODB backends, like ZEO, # old behavior is likely to cause problems as ZODB backends, like ZEO,
# gain new features. # gain new features.
from Zope.Startup.run import configure
_began_startup = 0 _began_startup = 0
def startup(): def startup():
...@@ -62,8 +64,6 @@ def debug(*args, **kw): ...@@ -62,8 +64,6 @@ def debug(*args, **kw):
import ZPublisher import ZPublisher
return ZPublisher.test('Zope', *args, **kw) return ZPublisher.test('Zope', *args, **kw)
from Zope.Startup.run import configure
# Zope.App.startup.startup() sets the following variables in this module. # Zope.App.startup.startup() sets the following variables in this module.
DB = None DB = None
bobo_application = None bobo_application = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment