Skip to content

Commit

Permalink
fix #6: Broken with ZEO 5.1.1: runzeo and zeoctl fails
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed May 23, 2017
1 parent 7ed33bb commit fdf7c0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Expand Up @@ -4,7 +4,7 @@ Changelog
4.1 (unreleased)
----------------

- Nothing changed yet.
- Fix generated ``runzeo`` and ``zeoctl`` scripts to run with ZEO 5.


4.0 (2017-02-28)
Expand Down
10 changes: 3 additions & 7 deletions src/zope/mkzeoinstance/__init__.py
Expand Up @@ -116,9 +116,7 @@
PYTHONPATH="$ZODB3_HOME"
export PYTHONPATH INSTANCE_HOME
ZEOCTL="$ZODB3_HOME/ZEO/zeoctl.py"
exec "$PYTHON" "$ZEOCTL" -C "$CONFIG_FILE" ${1+"$@"}
exec "$PYTHON" -m ZEO.zeoctl -C "$CONFIG_FILE" ${1+"$@"}
"""


Expand All @@ -135,9 +133,7 @@
PYTHONPATH="$ZODB3_HOME"
export PYTHONPATH INSTANCE_HOME
RUNZEO="$ZODB3_HOME/ZEO/runzeo.py"
exec "$PYTHON" "$RUNZEO" -C "$CONFIG_FILE" ${1+"$@"}
exec "$PYTHON" -m ZEO.runzeo -C "$CONFIG_FILE" ${1+"$@"}
"""


Expand Down Expand Up @@ -197,7 +193,7 @@ def run(self, argv,
if k in ('-h', '--help'):
usage(rc=2)

if len(args) < 1 or len(args) > 2:
if len(args) < 1 or len(args) > 2:
usage(rc=1)

instance_home = os.path.abspath(args[0])
Expand Down

0 comments on commit fdf7c0a

Please sign in to comment.