[Zodb-checkins] CVS: ZODB3/zdaemon/tests - testzdaemon.py:1.8

Guido van Rossum guido@python.org
Tue, 26 Nov 2002 18:44:29 -0500


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

Modified Files:
	testzdaemon.py 
Log Message:
Add more quotes, and a comment about why those quotes are necessary.


=== ZODB3/zdaemon/tests/testzdaemon.py 1.7 => 1.8 ===
--- ZODB3/zdaemon/tests/testzdaemon.py:1.7	Tue Nov 26 18:42:07 2002
+++ ZODB3/zdaemon/tests/testzdaemon.py	Tue Nov 26 18:44:29 2002
@@ -52,8 +52,9 @@
         return " ".join(args)
 
     def rundaemon(self, args):
+        # Add quotes, in case some pathname contains spaces (e.g. Mac OS X)
         args = self.quoteargs(args)
-        cmd = ("PYTHONPATH=%s %s %s -d -s %s %s" %
+        cmd = ('PYTHONPATH="%s" "%s" "%s" -d -s "%s" %s' %
                (self.ppath, self.python, self.zdaemon, self.zdsock, args))
         os.system(cmd)
         # When the daemon crashes, the following may help debug it: