[Zope-Checkins] CVS: ZODB3/ZEO - util.py:1.4

Jeremy Hylton jeremy@zope.com
Tue, 8 Oct 2002 15:35:09 -0400


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

Modified Files:
	util.py 
Log Message:
Add a minimal docstring.


=== ZODB3/ZEO/util.py 1.3 => 1.4 ===
--- ZODB3/ZEO/util.py:1.3	Thu Aug 29 12:31:17 2002
+++ ZODB3/ZEO/util.py	Tue Oct  8 15:35:09 2002
@@ -26,6 +26,12 @@
     return d
 
 class Environment:
+    """Determine location of the Data.fs & ZEO_SERVER.pid files.
+
+    Pass the argv[0] used to start ZEO to the constructor.
+
+    Use the zeo_pid and fs attributes to get the filenames.
+    """
 
     def __init__(self, argv0):
         v = os.environ.get("INSTANCE_HOME")
@@ -45,6 +51,6 @@
         pid = os.environ.get("ZEO_SERVER_PID")
         if pid is None:
             pid = os.path.join(self.var, "ZEO_SERVER.pid")
-        self.zeo_pid = pid
 
+        self.zeo_pid = pid
         self.fs = os.path.join(self.var, "Data.fs")