Made the spawner more streamlined, and allowed the @spawn command to access prototypes in a file specified by the optional PROTOTYPE_MODULES setting.
This commit is contained in:
parent
6eafe65076
commit
221d56fecd
4 changed files with 137 additions and 44 deletions
|
|
@ -792,6 +792,8 @@ def all_from_module(module):
|
|||
Return all global-level variables from a module as a dict
|
||||
"""
|
||||
mod = mod_import(module)
|
||||
if not mod:
|
||||
return {}
|
||||
return dict((key, val) for key, val in mod.__dict__.items()
|
||||
if not (key.startswith("_") or ismodule(val)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue