resource folder

This commit is contained in:
klemek
2021-01-08 13:04:00 +01:00
parent 5a965bbc7a
commit 36e10d50d7
3 changed files with 9 additions and 2 deletions
+6
View File
@@ -26,6 +26,12 @@ def is_extension(filepath: str, ext_list: List[str]) -> bool:
return file_extension in ext_list
def get_resource_path(filename: str) -> str:
return os.path.realpath(
os.path.join(os.path.dirname(__file__), "..", "resources", filename)
)
# LISTS