text: # Copyright (c) 2017 LINE Corporation
  # These sources are released under the terms of the MIT license: see LICENSE
  
  import os
  import envdir
  
  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'promgen.settings')
  os.environ.setdefault('PROMGEN_CONFIG_DIR', os.path.expanduser('~/.config/promgen'))
  default_app_config = 'promgen.apps.PromgenConfig'
  
  if os.path.exists(os.environ['PROMGEN_CONFIG_DIR']):
      envdir.open(os.environ['PROMGEN_CONFIG_DIR'])
  