From b64c2915d02cebe64cc634bfe44fdd54aaf97e07 Mon Sep 17 00:00:00 2001 From: alessandrofelder Date: Thu, 28 Sep 2023 11:45:56 +0100 Subject: [PATCH] fix importlib.resources so compatible with py 3.9 --- brainrender_napari/utils/brainglobe_logo.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/brainrender_napari/utils/brainglobe_logo.py b/brainrender_napari/utils/brainglobe_logo.py index 5b73952..9705303 100644 --- a/brainrender_napari/utils/brainglobe_logo.py +++ b/brainrender_napari/utils/brainglobe_logo.py @@ -1,8 +1,10 @@ -from importlib.resources import path +from importlib.resources import files from qtpy.QtWidgets import QGroupBox, QHBoxLayout, QLabel, QWidget -brainglobe_logo = path("brainrender_napari.resources", "brainglobe.png") +brainglobe_logo = files("brainrender_napari").joinpath( + "resources/brainglobe.png" +) _logo_html = f"""