geometric/tests/addons.py
def _plugin_import(plug):
    """
    Tests to see if a module is available
    """
    import sys
    try:
        if sys.version_info >= (3, 4):
            from importlib import util
            plug_spec = util.find_spec(plug)
        else:
            import pkgutil
            plug_spec = pkgutil.find_loader(plug)
    except ModuleNotFoundError:
        return False

    if plug_spec is None:
        return False
    else:
        return True

    Tests to see if a module is available
    
Tests to see if a module is available
Tests to see if a module is available
def _plugin_import(plug):
    import sys
    try:
        if sys.version_info >= (3, 4):
            from importlib import util
            plug_spec = util.find_spec(plug)
        else:
            import pkgutil
            plug_spec = pkgutil.find_loader(plug)
    except ModuleNotFoundError:
        return False
    if plug_spec is None:
        return False
    else:
        return True
def _plugin_import ( plug ) : import sys try : if sys . version_info >= ( 3 , 4 ) : from importlib import util plug_spec = util . find_spec ( plug ) else : import pkgutil plug_spec = pkgutil . find_loader ( plug ) except ModuleNotFoundError : return False if plug_spec is None : return False else : return True
Tests to see if a module is available
Tests to see if a module is available
"""
    Tests to see if a module is available
    """
plug