Use power of LazyInitialise to murder TFW/TAOENV global state

This commit is contained in:
Kristóf Tóth
2018-06-01 14:00:44 +02:00
parent 06c2fc97ad
commit 8817f991a5
3 changed files with 20 additions and 9 deletions

View File

@ -1,6 +1,6 @@
# Copyright (C) 2018 Avatao.com Innovative Learning Kft.
# All Rights Reserved. See LICENSE file for details.
from envvars import prefixed_envvars_to_namedtuple
from envvars import LazyEnvironment
TAOENV = prefixed_envvars_to_namedtuple('AVATAO_', 'taoenvtuple')
TAOENV = LazyEnvironment('AVATAO_', 'taoenvtuple').environment