[Zodb-checkins] CVS: ZODB3/zdaemon - zdctl.py:1.3

Guido van Rossum guido@python.org
Tue, 26 Nov 2002 12:22:31 -0500


Update of /cvs-repository/ZODB3/zdaemon
In directory cvs.zope.org:/tmp/cvs-serv17764

Modified Files:
	zdctl.py 
Log Message:
The logic for setting _file from __file__ or sys.argv[0] was
reversed. :-(


=== ZODB3/zdaemon/zdctl.py 1.2 => 1.3 ===
--- ZODB3/zdaemon/zdctl.py:1.2	Mon Nov 25 14:58:33 2002
+++ ZODB3/zdaemon/zdctl.py	Tue Nov 26 12:22:30 2002
@@ -49,9 +49,9 @@
 
     # Where's zdaemon?
     if __name__ == "__main__":
-        _file = __file__
-    else:
         _file = sys.argv[0]
+    else:
+        _file = __file__
     _file = os.path.normpath(os.path.abspath(_file))
     _dir = os.path.dirname(_file)
     zdaemon = os.path.join(_dir, "zdaemon.py")