From aec6cd4cdb334e897e0119022df6a241d4f76cdc Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 26 Jan 2022 11:22:21 -0800 Subject: [PATCH] reindex-textual-data: Find psycopg2 in the virtualenv. Signed-off-by: Anders Kaseorg --- scripts/setup/reindex-textual-data | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/setup/reindex-textual-data b/scripts/setup/reindex-textual-data index 29d50ca074..67952064e3 100755 --- a/scripts/setup/reindex-textual-data +++ b/scripts/setup/reindex-textual-data @@ -6,15 +6,15 @@ import os import sys import time -import psycopg2 -import psycopg2.extensions -from psycopg2.sql import SQL, Identifier - sys.path.append(os.path.join(os.path.dirname(__file__), "../..")) from scripts.lib.setup_path import setup_path setup_path() +import psycopg2 +import psycopg2.extensions +from psycopg2.sql import SQL, Identifier + from scripts.lib.zulip_tools import su_to_zulip su_to_zulip()