This commit is contained in:
Philip Ridout 2017-05-15 11:24:28 +01:00
parent 16d2bd96f0
commit eedfd0dd34

View File

@ -108,6 +108,7 @@ def extension_loader(glob_pattern, excluded_files=[]):
log.warning('Failed to import {module_name} on path {extension_path}'
.format(module_name=module_name, extension_path=str(extension_path)))
def path_to_module(path):
"""
Convert a path to a module name (i.e openlp.core.common)