generate_zulip_bots_static_files: Write to static, not STATIC_ROOT.

Otherwise the files aren’t processed by collectstatic and don’t end up
in the staticfiles.json manifest.

Signed-off-by: Anders Kaseorg <andersk@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-07-18 14:20:14 -07:00 committed by Tim Abbott
parent 5f712b960f
commit 695b79c5d8
1 changed files with 1 additions and 2 deletions

View File

@ -11,10 +11,9 @@ def generate_zulip_bots_static_files() -> None:
sys.path.append(ZULIP_PATH) sys.path.append(ZULIP_PATH)
from typing import List from typing import List
from zproject import settings
from zulip_bots.lib import get_bots_directory_path 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): if os.path.isdir(bots_dir):
# delete old static files, they could be outdated # delete old static files, they could be outdated
try: try: