Skip to content

Commit

Permalink
Use globals() for env config expose
Browse files Browse the repository at this point in the history
  • Loading branch information
darklow committed Jan 30, 2016
1 parent 75d44b9 commit 7ca1c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,4 @@
# Expose any env that starts with SC_
for env_key, env_val in os.environ.items():
if env_key.startswith('SC_'):
setattr(sys.modules[__name__], env_key[3:], env_val)
globals()[env_key[3:]] = env_val

0 comments on commit 7ca1c70

Please sign in to comment.