Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 6 sendgrid/helpers/inbound/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

class Config(object):
"""All configuration for this app is loaded here"""
def __init__(self):
def __init__(self, **opts):
if (os.environ.get('ENV') != 'prod'): # We are not in Heroku
self.init_environment()

"""Allow variables assigned in config.yml available the following variables
via properties"""
self.base_path = os.path.abspath(os.path.dirname(__file__))
with open(self.base_path + '/config.yml') as stream:
self.path = opts.get('path', os.path.abspath(os.path.dirname(__file__)))
with open(self.path + '/config.yml') as stream:
config = yaml.load(stream)
self._debug_mode = config['debug_mode']
self._endpoint = config['endpoint']
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.