blob: 8316e39ed1030a5f6ce9d4eee6027870c5ddfbfb [file] [log] [blame]
import const
from log import logger, logger_cli
from other import Utils
from settings import config
def nested_set(_d, _keys, _value):
# # import and deepcopy for safety
# from copy import deepcopy
# _d = deepcopy(_dict)
# process
for k in _keys[:-1]:
_d = _d.setdefault(k, {})
_d[_keys[-1]] = _value
utils = Utils()
const = const
logger = logger
logger_cli = logger_cli
config = config