Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
131 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
try: | ||
import ConfigParser as configparser | ||
except ImportError: | ||
import configparser | ||
import logging.config | ||
import os | ||
|
||
from zimit import main | ||
|
||
here = os.path.dirname(__file__) | ||
|
||
ini_path = os.environ.get('ZIMIT_INI') | ||
if ini_path is None: | ||
ini_path = os.path.join(here, 'local.ini') | ||
|
||
# Set up logging | ||
logging.config.fileConfig(ini_path) | ||
|
||
# Parse config and create WSGI app | ||
config = configparser.ConfigParser() | ||
config.read(ini_path) | ||
|
||
application = main(config.items('DEFAULT'), **dict(config.items('app:main' | ||
))) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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