mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 11:55:04 -02:30
Rename ansibleworks to awx.
This commit is contained in:
26
awx/__init__.py
Normal file
26
awx/__init__.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# Copyright (c) 2013 AnsibleWorks, Inc.
|
||||
# All Rights Reserved.
|
||||
|
||||
__version__ = '1.2-b2'
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
__all__ = ['__version__']
|
||||
|
||||
# Check for the presence/absence of "devonly" module to determine if running
|
||||
# from a source code checkout or release packaage.
|
||||
try:
|
||||
import awx.devonly
|
||||
MODE = 'development'
|
||||
except ImportError:
|
||||
MODE = 'production'
|
||||
|
||||
def manage():
|
||||
# Update the default settings environment variable based on current mode.
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'awx.settings.%s' % MODE)
|
||||
from django.core.management import execute_from_command_line
|
||||
if len(sys.argv) >= 2 and sys.argv[1] in ('version', '--version'):
|
||||
sys.stdout.write('awx-%s\n' % __version__)
|
||||
else:
|
||||
execute_from_command_line(sys.argv)
|
||||
Reference in New Issue
Block a user