diff --git a/tools/setup/generate_zulip_bots_static_files.py b/tools/setup/generate_zulip_bots_static_files.py index 9838148b78..99237e6366 100755 --- a/tools/setup/generate_zulip_bots_static_files.py +++ b/tools/setup/generate_zulip_bots_static_files.py @@ -11,10 +11,9 @@ def generate_zulip_bots_static_files() -> None: sys.path.append(ZULIP_PATH) from typing import List - from zproject import settings from zulip_bots.lib import get_bots_directory_path - bots_dir = os.path.join(settings.STATIC_ROOT, 'generated/bots') + bots_dir = 'static/generated/bots' if os.path.isdir(bots_dir): # delete old static files, they could be outdated try: