mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[wgem] config: allowing to use a custom electron version
This commit is contained in:
11
bauh/commons/util.py
Normal file
11
bauh/commons/util.py
Normal 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
|
||||
Reference in New Issue
Block a user