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:
Griatch 2014-07-01 04:04:54 +02:00
parent 6eafe65076
commit 221d56fecd
4 changed files with 137 additions and 44 deletions

View file

@ -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)))