Avoid use of __file__
jayvdb opened this issue · 1 comments
jayvdb commented
Like Kozea/tinycss2#21 , however it will be a bit more difficult in this case, and needing to get a reader from importlib.resources
and use contents()
instead of os.listdir()
liZe commented
This is now only the case as a fallback, and will disappear when older versions of Python are deprecated.