resource-watch/gee-tiles

View on GitHub
geetiles/config/__init__.py

Summary

Maintainability
A
0 mins
Test Coverage
D
66%
"""CONFIG MODULE"""

import os

from geetiles.config import base, staging, prod, test

SETTINGS = base.SETTINGS

if os.getenv('ENVIRONMENT') == 'staging':
    SETTINGS.update(staging.SETTINGS)

if os.getenv('ENVIRONMENT') == 'prod':
    SETTINGS.update(prod.SETTINGS)

if os.getenv('ENVIRONMENT') == 'test':
    SETTINGS.update(test.SETTINGS)