diff --git a/scripts/restart-server b/scripts/restart-server index e36c643ba2..0b0a55cc2c 100755 --- a/scripts/restart-server +++ b/scripts/restart-server @@ -8,6 +8,10 @@ import sys import time sys.path.append(os.path.join(os.path.dirname(__file__), "..")) +from scripts.lib.setup_path import setup_path + +setup_path() + from scripts.lib.supervisor import list_supervisor_processes from scripts.lib.zulip_tools import ( DEPLOYMENTS_DIR, diff --git a/scripts/stop-server b/scripts/stop-server index ee0c1af9e8..1a95b5d927 100755 --- a/scripts/stop-server +++ b/scripts/stop-server @@ -7,6 +7,10 @@ import sys import time sys.path.append(os.path.join(os.path.dirname(__file__), "..")) +from scripts.lib.setup_path import setup_path + +setup_path() + from scripts.lib.supervisor import list_supervisor_processes from scripts.lib.zulip_tools import ( ENDC,