diff options
author | Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> | 2019-11-07 14:37:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-07 14:37:59 +0100 |
commit | 753e32e5ab3c4f68c0e8a61a0a4289dcfd0cd509 (patch) | |
tree | 70017dc639f12f951d2ec5986fc2e702219745c8 /src/python/gudhi/__init__.py.in | |
parent | 31903a79c915b221b1d31776af49720376f9c8bd (diff) | |
parent | acd8a5a49083cd588aaa859dc4af104ce9090b22 (diff) |
Merge pull request #128 from mglisse/extra-modules
Fix #125
Diffstat (limited to 'src/python/gudhi/__init__.py.in')
-rw-r--r-- | src/python/gudhi/__init__.py.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/python/gudhi/__init__.py.in b/src/python/gudhi/__init__.py.in index 28bab0e1..02888fff 100644 --- a/src/python/gudhi/__init__.py.in +++ b/src/python/gudhi/__init__.py.in @@ -21,13 +21,16 @@ __debug_info__ = @GUDHI_PYTHON_DEBUG_INFO@ from sys import exc_info from importlib import import_module -__all__ = [@GUDHI_PYTHON_MODULES@] +__all__ = [@GUDHI_PYTHON_MODULES@ @GUDHI_PYTHON_MODULES_EXTRA@] __available_modules = '' __missing_modules = '' -# try to import * from gudhi.__module_name -for __module_name in __all__: +# Try to import * from gudhi.__module_name for default modules. +# Extra modules require an explicit import by the user (mostly because of +# unusual dependencies, but also to avoid cluttering namespace gudhi and +# speed up the basic import) +for __module_name in [@GUDHI_PYTHON_MODULES@]: try: __module = import_module('gudhi.' + __module_name) try: |