From 17fb6ba835d88774407f1438c20679187dfb7005 Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Tue, 1 Aug 2017 22:06:52 +0100 Subject: [PATCH] Convert applocation over to pathlab. Add utility functions for future use. --- openlp/core/common/applocation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/common/applocation.py b/openlp/core/common/applocation.py index ad81e36ad..a6c137f01 100644 --- a/openlp/core/common/applocation.py +++ b/openlp/core/common/applocation.py @@ -120,7 +120,7 @@ class AppLocation(object): path = path / section try: file_paths = path.glob('*' + extension) - return [file_path.relative_to(path) for file_path in file_paths] # TODO: Could/should this be an iterator? + return [file_path.relative_to(path) for file_path in file_paths] except OSError: return []