Skip to content

Commit 69db97c

Browse files
authored
Add files via upload
1 parent 077a9b9 commit 69db97c

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

upcean/predraw/prefuncs.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,18 @@
150150
svgwritesupport = False
151151

152152
# Initialize pkg_resources support
153+
implib = False
154+
pkgres = False
153155
try:
154-
import pkg_resources
155-
pkgres = True
156+
import importlib.resources
157+
implib = True
156158
except ImportError:
157-
pkgres = False
159+
implib = False
160+
try:
161+
import pkg_resources
162+
pkgres = True
163+
except ImportError:
164+
pkgres = False
158165

159166
# Initialize font paths
160167
fontpathocra = upcean.fonts.fontpathocra

0 commit comments

Comments
 (0)