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
Bugs Fixed
++++++++++
- LP #397861: exporting $PYTHON in generated 'zopectl' for fixing import issue
with "bin/zopectl adduser"
......@@ -129,7 +129,7 @@ class ZopeCtlOptions(ZDOptions):
self.sockname = config.runner.socket_name
else:
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__),
"zdrun.py")
if WIN:
......
......@@ -4,6 +4,7 @@ PYTHON="<<PYTHON>>"
INSTANCE_HOME="<<INSTANCE_HOME>>"
CONFIG_FILE="<<INSTANCE_HOME>>/etc/zope.conf"
export INSTANCE_HOME
export PYTHON
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