mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 00:47:29 -02:30
Major rename of package from lib to ansibleworks.
This commit is contained in:
20
ansibleworks/__init__.py
Normal file
20
ansibleworks/__init__.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2013 AnsibleWorks, Inc.
|
||||
# All Rights Reserved.
|
||||
|
||||
__version__ = '1.2-b1'
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
__all__ = ['__version__']
|
||||
|
||||
def manage():
|
||||
# Default to production mode unless being called from manage.py, which sets
|
||||
# the environment variable for development mode instead.
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
|
||||
'ansibleworks.settings.production')
|
||||
from django.core.management import execute_from_command_line
|
||||
if len(sys.argv) >= 2 and sys.argv[1] in ('version', '--version'):
|
||||
sys.stdout.write('ansibleworks-%s\n' % __version__)
|
||||
else:
|
||||
execute_from_command_line(sys.argv)
|
||||
Reference in New Issue
Block a user