zulip/scripts/get-django-setting

15 lines
354 B
Python
Executable File

#!/usr/bin/env python3
from __future__ import absolute_import
import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
import scripts.lib.setup_path_on_import
os.environ['DJANGO_SETTINGS_MODULE'] = 'zproject.settings'
from django.conf import settings
print(getattr(settings, sys.argv[1]))