from pyconfig import Namespace import os sunetpages = Namespace() sunetpages.root = "/var/www" sunetpages.owner = "www-data" sunetpages.group = "www-data" sunetpages.auth_cookie = os.getenv('SUNET_PAGES_AUTH_COOKIE',None)
# This is for testing localconfig import bugs that happened with the Python 3 # compatibility patch. It'll be automatically included with tests and cause # regressions if there are any. from pyconfig import Namespace conf = Namespace() conf.local = True
from pyconfig import Namespace test = Namespace() test.value = 1 test.name = 'test1'
# This is for testing localconfig import bugs that happened with the Python 3 # compatibility patch. It'll be automatically included with tests and cause # regressions if there are any. from pyconfig import Namespace conf = Namespace({'inp1':True, 'inp2':False}) conf.local = True conf.inp2 = True # overriding