diff --git a/scripts/lib/setup_path_on_import.py b/scripts/lib/setup_path_on_import.py index d99e68e06a..3cd8a65d7e 100644 --- a/scripts/lib/setup_path_on_import.py +++ b/scripts/lib/setup_path_on_import.py @@ -1,6 +1,5 @@ """ Use libraries from a virtualenv (by modifying sys.path) in production. -Also add Zulip's root directory to sys.path """ import os @@ -17,5 +16,3 @@ if sys.prefix != venv: exec(open(activate_this).read(), {}, activate_locals) if not os.path.exists(activate_locals["site_packages"]): raise RuntimeError(venv + " was not set up for this Python version") - -sys.path.append(BASE_DIR)