[Zodb-checkins] CVS: ZODB3/ZEO - runzeo.py:1.5
Guido van Rossum
guido@python.org
Sat, 18 Jan 2003 11:36:37 -0500
Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv7152
Modified Files:
runzeo.py
Log Message:
Get the schema from the ZEO directory, not from the directory where
runzeo.py lives -- that didn't work when runzeo.py is installed in
/usr/local/bin.
=== ZODB3/ZEO/runzeo.py 1.4 => 1.5 ===
--- ZODB3/ZEO/runzeo.py:1.4 Fri Jan 17 15:19:28 2003
+++ ZODB3/ZEO/runzeo.py Sat Jan 18 11:36:33 2003
@@ -39,6 +39,7 @@
import ZConfig, ZConfig.datatypes
import zLOG
+import ZEO
from zdaemon.zdoptions import ZDOptions
def parse_address(arg):
@@ -93,7 +94,7 @@
logsectionname = "logger"
def __init__(self):
- self.schemadir = os.path.dirname(__file__)
+ self.schemadir = os.path.dirname(ZEO.__file__)
ZDOptions.__init__(self)
self.add_zeo_options()
self.add("storages", "storages",
@@ -273,5 +274,4 @@
s.main()
if __name__ == "__main__":
- __file__ = sys.argv[0]
main()