Lower the priority of environment variables overrides

This commit is contained in:
ZyX 2015-01-06 22:52:08 +03:00
parent a47a486394
commit 98ae55c183
1 changed files with 2 additions and 2 deletions

View File

@ -39,12 +39,12 @@ def finish_args(environ, args):
:return: Object received as second (``args``) argument.
'''
args.config_override = mergeargs(chain(
(parsedotval(v) for v in args.config_override or ()),
parse_override_var(environ.get('POWERLINE_CONFIG_OVERRIDES', '')),
(parsedotval(v) for v in args.config_override or ()),
))
args.theme_override = mergeargs(chain(
(parsedotval(v) for v in args.theme_override or ()),
parse_override_var(environ.get('POWERLINE_THEME_OVERRIDES', '')),
(parsedotval(v) for v in args.theme_override or ()),
))
if args.renderer_arg:
args.renderer_arg = mergeargs((parsedotval(v) for v in args.renderer_arg), remove=True)