mirror of https://github.com/zulip/zulip.git
9fc0aa7ffa
activate_this.py has always documented that it should be exec()ed with locals = globals, and in virtualenv 16.0.0 it raises a NameError otherwise. As a simplified demonstration of the weird things that can go wrong when locals ≠ globals: >>> exec('a = 1; print([a])', {}, {}) [1] >>> exec('a = 1; print([a for b in [1]])', {}, {}) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<string>", line 1, in <module> File "<string>", line 1, in <listcomp> NameError: name 'a' is not defined >>> exec('a = 1; print([a for b in [1]])', {}) [1] Top-level assignments go into locals, but from inside a new scope like a list comprehension, they’re read out of globals, which doesn’t work. Fixes #12030. Signed-off-by: Anders Kaseorg <anders@zulipchat.com> |
||
---|---|---|
.. | ||
lib | ||
nagios | ||
setup | ||
README.md | ||
__init__.py | ||
get-django-setting | ||
purge-old-deployments | ||
restart-server | ||
upgrade-zulip | ||
upgrade-zulip-from-git | ||
zulip-puppet-apply |
README.md
This directory contains scripts that:
-
Generally do not require access to Django or the database (those are "management commands"), and thus are suitable to run operationally.
-
Are useful for managing a production deployment of Zulip (many are also used in a Zulip development environment, though development-only scripts live in
tools/
).
For more details, see https://zulip.readthedocs.io/en/latest/overview/directory-structure.html.