Convert applocation over to pathlab. Add utility functions for future use.

This commit is contained in:
Philip Ridout 2017-08-01 22:06:52 +01:00
parent 63bd98372a
commit 17fb6ba835

View File

@ -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 []