[wgem] config: allowing to use a custom electron version

This commit is contained in:
Vinícius Moreira
2019-12-17 15:54:01 -03:00
parent e87c95ea9e
commit 70bd76c52a
4 changed files with 38 additions and 8 deletions

11
bauh/commons/util.py Normal file
View File

@@ -0,0 +1,11 @@
import collections
def deep_update(source: dict, overrides: dict):
for key, value in overrides.items():
if isinstance(value, collections.Mapping) and value:
returned = deep_update(source.get(key, {}), value)
source[key] = returned
else:
source[key] = overrides[key]
return source