diff --git a/apistrap/__init__.py b/apistrap/__init__.py index 3e2f46a..d69d16e 100644 --- a/apistrap/__init__.py +++ b/apistrap/__init__.py @@ -1 +1 @@ -__version__ = "0.9.0" +__version__ = "0.9.1" diff --git a/apistrap/utils.py b/apistrap/utils.py index 70e7254..685a373 100644 --- a/apistrap/utils.py +++ b/apistrap/utils.py @@ -52,6 +52,10 @@ def get_function_perspective_globals(function: Callable) -> Dict[str, Any]: if frame.filename == inspect.getsourcefile(function): globs.update(frame.frame.f_globals) + module = inspect.getmodule(function) + if module: + globs.update(inspect.getmembers(module)) + return globs diff --git a/setup.py b/setup.py index 11a4b1a..2eaf38e 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import find_packages, setup setup(name='apistrap', - version='0.9.0', + version='0.9.1', description='Iterait REST API utilities', classifiers=[ 'Development Status :: 4 - Beta',