Commit 4366864d authored by Guido van Rossum's avatar Guido van Rossum

- There's no need to import the Context submodule of ZConfig.

- Now that ZEO/schema.xml is installed, use ZEO.__file__ to find it.
parent d7a5aa5f
...@@ -39,7 +39,8 @@ import signal ...@@ -39,7 +39,8 @@ import signal
import socket import socket
import zLOG import zLOG
import ZConfig.Context import ZConfig
import ZEO
class Options: class Options:
...@@ -121,7 +122,7 @@ class Options: ...@@ -121,7 +122,7 @@ class Options:
def load_configuration(self): def load_configuration(self):
if not self.configuration: if not self.configuration:
return return
here = os.path.dirname(sys.argv[0]) here = os.path.dirname(ZEO.__file__)
schemafile = os.path.join(here, "schema.xml") schemafile = os.path.join(here, "schema.xml")
schema = ZConfig.loadSchema(schemafile) schema = ZConfig.loadSchema(schemafile)
try: try:
......
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