-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes for running the app via 'python3 -m ansible-webui'
- Loading branch information
1 parent
8819ae2
commit 946b75c
Showing
23 changed files
with
173 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +0,0 @@ | ||
#!/usr/bin/env python3 | ||
|
||
if __name__ == '__main__': | ||
# pylint: disable=E0401 | ||
from sys import argv as sys_argv | ||
from sys import exit as sys_exit | ||
from main import main | ||
from aw.config.hardcoded import VERSION | ||
|
||
if len(sys_argv) > 1: | ||
if sys_argv[1] == 'version': | ||
print(VERSION) | ||
sys_exit(0) | ||
|
||
main() | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env python3 | ||
|
||
if __name__ == '__main__': | ||
# pylint: disable=E0401 | ||
from sys import argv as sys_argv | ||
from sys import exit as sys_exit | ||
from sys import path as sys_path | ||
from os import path as os_path | ||
|
||
try: | ||
from main import main | ||
|
||
except ModuleNotFoundError: | ||
sys_path.append(os_path.dirname(os_path.abspath(__file__))) | ||
from main import main | ||
|
||
from aw.config.hardcoded import VERSION | ||
|
||
if len(sys_argv) > 1: | ||
if sys_argv[1] == 'version': | ||
print(VERSION) | ||
sys_exit(0) | ||
|
||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
from os import environ | ||
|
||
from django.core.wsgi import get_wsgi_application | ||
|
||
environ.setdefault('DJANGO_SETTINGS_MODULE', 'aw.settings') | ||
environ['PYTHONIOENCODING'] = 'utf8' | ||
environ['PYTHONUNBUFFERED'] = '1' | ||
|
||
app = get_wsgi_application() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.