From eedfd0dd34c6c75cf13b744e7c363367f79b1365 Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Mon, 15 May 2017 11:24:28 +0100 Subject: [PATCH] pep --- openlp/core/common/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openlp/core/common/__init__.py b/openlp/core/common/__init__.py index e6ded5495..66e83b26b 100644 --- a/openlp/core/common/__init__.py +++ b/openlp/core/common/__init__.py @@ -88,7 +88,7 @@ def extension_loader(glob_pattern, excluded_files=[]): :param glob_pattern: A glob pattern used to find the extension(s) to be imported. Should be relative to the application directory. i.e. openlp/plugins/*/*plugin.py :type glob_pattern: str - + :param excluded_files: A list of file names to exclude that the glob pattern may find. :type excluded_files: list of strings @@ -108,13 +108,14 @@ 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) - + :param path: The path to convert to a module name. :type path: Path - + :return: The module name. :rtype: str """