authentic/manage.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
509 B
Python
Raw Permalink Normal View History

2010-05-31 15:24:53 +02:00
#!/usr/bin/env python
import os
import sys
2021-03-30 10:38:14 +02:00
2013-03-06 18:35:39 +01:00
if __name__ == '__main__':
config_file = False
argv = sys.argv[1:]
if argv and argv[0].startswith('--config='):
config_file = argv[0].split('=')[1]
argv.pop(0)
if config_file:
os.environ['AUTHENTIC2_SETTINGS_FILE'] = config_file
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'authentic2.settings')
2010-05-31 15:24:53 +02:00
2013-03-06 18:35:39 +01:00
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv[:1] + argv)