mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-04-25 22:13:24 +08:00
18 lines
428 B
Python
Executable file
18 lines
428 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
# Copyright © Michal Čihař <michal@weblate.org>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import os
|
|
import sys
|
|
|
|
if __name__ == "__main__":
|
|
default = "weblate.settings"
|
|
if len(sys.argv) >= 2 and sys.argv[1] == "test":
|
|
default = "weblate.settings_test"
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", default)
|
|
|
|
from weblate.runner import main
|
|
|
|
main(developer_mode=True)
|