create-production-venv: Fix issues with api/ relative path.

Fixes #4313.
This commit is contained in:
Tim Abbott 2017-03-25 19:00:56 -07:00
parent c7f1a7aa19
commit 5bf01fb7d4
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,10 @@ run(["apt-get", "-y", "install"] + VENV_DEPENDENCIES)
python_version = sys.version_info[0]
# Set the current working directory to the Zulip checkout, so the api/
# relative path in requirements/common.txt works.
os.chdir(ZULIP_PATH)
venv_name = "zulip-venv" if sys.version_info[0] == 2 else "zulip-py3-venv"
cached_venv_path = setup_virtualenv(
os.path.join(args.deploy_path, venv_name),