mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
This helps make the Zulip development environment somewhat more robust to new contributors, since it will give them a nice warning if they try running any of our development tools outside the Zulip virtualenv. Fixes #3468.
14 lines
374 B
Python
14 lines
374 B
Python
#!/usr/bin/env python
|
|
from __future__ import print_function
|
|
|
|
import sys
|
|
|
|
def check_venv(filename):
|
|
# type: (str) -> None
|
|
try:
|
|
import ujson
|
|
except ImportError:
|
|
print("You need to run %s inside a Zulip dev environment." % (filename,))
|
|
print("If you are using Vagrant, you can `vagrant ssh` to enter the Vagrant guest.")
|
|
sys.exit(1)
|