[Zope-Checkins] SVN: Zope/trunk/src/Zope2/Startup/zope add "python" option to zope.conf schema allowing for a python binary to be specified, allowed a Zope instance to run from any buildout with the appropriate eggs.

Chris Withers chris at simplistix.co.uk
Sat Apr 11 13:52:25 EDT 2009


Log message for revision 99134:
  add "python" option to zope.conf schema allowing for a python binary to be specified, allowed a Zope instance to run from any buildout with the appropriate eggs.

Changed:
  U   Zope/trunk/src/Zope2/Startup/zopectl.py
  U   Zope/trunk/src/Zope2/Startup/zopeschema.xml

-=-
Modified: Zope/trunk/src/Zope2/Startup/zopectl.py
===================================================================
--- Zope/trunk/src/Zope2/Startup/zopectl.py	2009-04-11 17:48:10 UTC (rev 99133)
+++ Zope/trunk/src/Zope2/Startup/zopectl.py	2009-04-11 17:52:25 UTC (rev 99134)
@@ -129,7 +129,7 @@
             self.sockname = config.runner.socket_name
         else:
             self.sockname = os.path.join(self.clienthome, "zopectlsock")
-        self.python = sys.executable
+        self.python = config.python or sys.executable
         self.zdrun = os.path.join(os.path.dirname(zdaemon.__file__),
                                   "zdrun.py")
         if WIN:

Modified: Zope/trunk/src/Zope2/Startup/zopeschema.xml
===================================================================
--- Zope/trunk/src/Zope2/Startup/zopeschema.xml	2009-04-11 17:48:10 UTC (rev 99133)
+++ Zope/trunk/src/Zope2/Startup/zopeschema.xml	2009-04-11 17:52:25 UTC (rev 99134)
@@ -945,4 +945,14 @@
    </description>
   </multisection>
 
+    <key name="python" datatype="existing-path"
+         required="no">
+      <description>
+        Path to the Python interpreter for use by zdaemon.
+        Defaults to sys.executable.
+        Needed for buildout-based instances to supply a python
+        that has all the correct eggs on the path.
+      </description>
+    </key>
+
 </schema>



More information about the Zope-Checkins mailing list