pacifica/pacifica-notifications

View on GitHub
pacifica/notifications/globals.py

Summary

Maintainability
A
0 mins
Test Coverage
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Global configuration options expressed in environment variables."""
from os import getenv
from os.path import expanduser, join

CONFIG_FILE = getenv(
    'NOTIFICATIONS_CONFIG',
    join(
        expanduser('~'),
        '.pacifica-notifications',
        'config.ini'
    )
)
CHERRYPY_CONFIG = getenv(
    'NOTIFICATIONS_CPCONFIG',
    join(
        expanduser('~'),
        '.pacifica-notifications',
        'cpconfig.ini'
    )
)