Handle prototype modules with non-dicts as global variables
This commit is contained in:
parent
3b75780b40
commit
52c84b44b5
1 changed files with 4 additions and 3 deletions
|
|
@ -107,6 +107,7 @@ for mod in settings.PROTOTYPE_MODULES:
|
|||
# internally we store as (key, desc, locks, tags, prototype_dict)
|
||||
prots = []
|
||||
for variable_name, prot in all_from_module(mod).items():
|
||||
if isinstance(prot, dict):
|
||||
if "prototype_key" not in prot:
|
||||
prot['prototype_key'] = variable_name.lower()
|
||||
prots.append((prot['prototype_key'], homogenize_prototype(prot)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue