Commit 79375c4e authored by Andreas Jung's avatar Andreas Jung

- LP #397861: exporting $PYTHON in generated 'zopectl' for fixing import issue

  with "bin/zopectl adduser"
parent efd3f474
...@@ -28,6 +28,9 @@ Restructuring ...@@ -28,6 +28,9 @@ Restructuring
Bugs Fixed Bugs Fixed
++++++++++ ++++++++++
- LP #397861: exporting $PYTHON in generated 'zopectl' for fixing import issue
with "bin/zopectl adduser"
- PluginIndexes: Added 'indexSize' to IPluggableIndex. - PluginIndexes: Added 'indexSize' to IPluggableIndex.
- HelpSys: ProductHelp no longer depends on PluginIndexes initialization. - HelpSys: ProductHelp no longer depends on PluginIndexes initialization.
......
...@@ -129,7 +129,7 @@ class ZopeCtlOptions(ZDOptions): ...@@ -129,7 +129,7 @@ class ZopeCtlOptions(ZDOptions):
self.sockname = config.runner.socket_name self.sockname = config.runner.socket_name
else: else:
self.sockname = os.path.join(self.clienthome, "zopectlsock") self.sockname = os.path.join(self.clienthome, "zopectlsock")
self.python = config.python or sys.executable self.python = os.environ.get('PYTHON', config.python) or sys.executable
self.zdrun = os.path.join(os.path.dirname(zdaemon.__file__), self.zdrun = os.path.join(os.path.dirname(zdaemon.__file__),
"zdrun.py") "zdrun.py")
if WIN: if WIN:
...@@ -346,4 +346,4 @@ if __name__ == "__main__": ...@@ -346,4 +346,4 @@ if __name__ == "__main__":
# signal handler at all. # signal handler at all.
signal.signal(signal.SIGCHLD, _ignoreSIGCHLD) signal.signal(signal.SIGCHLD, _ignoreSIGCHLD)
exitstatus = main() exitstatus = main()
sys.exit(exitstatus) exit(exitstatus)
...@@ -4,6 +4,7 @@ PYTHON="<<PYTHON>>" ...@@ -4,6 +4,7 @@ PYTHON="<<PYTHON>>"
INSTANCE_HOME="<<INSTANCE_HOME>>" INSTANCE_HOME="<<INSTANCE_HOME>>"
CONFIG_FILE="<<INSTANCE_HOME>>/etc/zope.conf" CONFIG_FILE="<<INSTANCE_HOME>>/etc/zope.conf"
export INSTANCE_HOME export INSTANCE_HOME
export PYTHON
ZDCTL="<<ZOPE2PATH>>/Startup/zopectl.py" ZDCTL="<<ZOPE2PATH>>/Startup/zopectl.py"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment