Commit 3c4a6f2e authored by Andreas Jung's avatar Andreas Jung

- LP #397861: exporting $PYTHON in generated 'zopectl' for fixing import issue
  with "bin/zopectl adduser"
parent ab8c4513
...@@ -47,3 +47,5 @@ Features Added ...@@ -47,3 +47,5 @@ Features Added
Bugs Fixed Bugs Fixed
++++++++++ ++++++++++
- LP #397861: exporting $PYTHON in generated 'zopectl' for fixing import issue
with "bin/zopectl adduser"
...@@ -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:
......
...@@ -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