config.py 302 Bytes
Newer Older
carignani's avatar
carignani committed
'''
Configuration values
'''

import os

def env_or_false(key):
    '''
    Lookup environment key, returns False is not present
    '''
    try:
        return os.environ[key]
    except KeyError:
        return False

VERSION = "0.0.5"
carignani's avatar
carignani committed

SECRET = env_or_false("TOSCAIE_SECRET") or 'super_secret_key'