tools: Create more consistent checks for venv.

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.
This commit is contained in:
sinwar
2017-02-06 01:54:28 +05:30
committed by Tim Abbott
parent b6986d48c7
commit eab355b0cd
24 changed files with 116 additions and 82 deletions

View File

@@ -8,6 +8,10 @@ import os
import sys
import unittest
# check for the venv
from lib import sanity_check
sanity_check.check_venv(__file__)
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--coverage', dest='coverage',