[Zodb-checkins] CVS: ZODB3/ZEO - runsvr.py:1.26

Guido van Rossum guido@python.org
Thu, 9 Jan 2003 15:40:25 -0500


Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv15337

Modified Files:
	runsvr.py 
Log Message:
- There's no need to import the Context submodule of ZConfig.

- Now that ZEO/schema.xml is installed, use ZEO.__file__ to find it.


=== ZODB3/ZEO/runsvr.py 1.25 => 1.26 ===
--- ZODB3/ZEO/runsvr.py:1.25	Thu Jan  9 15:06:41 2003
+++ ZODB3/ZEO/runsvr.py	Thu Jan  9 15:40:22 2003
@@ -39,7 +39,8 @@
 import socket
 
 import zLOG
-import ZConfig.Context
+import ZConfig
+import ZEO
 
 
 class Options:
@@ -121,7 +122,7 @@
     def load_configuration(self):
         if not self.configuration:
             return
-        here = os.path.dirname(sys.argv[0])
+        here = os.path.dirname(ZEO.__file__)
         schemafile = os.path.join(here, "schema.xml")
         schema = ZConfig.loadSchema(schemafile)
         try: