simplify resources_path logic to reolve type hint

The following logic was leading to type hint issues:

>	inspect.getfile(inspect.currentframe())

But this code is overly complex for what it does is the same as
simply __file__. So we kill two birds with one stone, so to speak.
This commit is contained in:
deeplow 2022-07-21 14:00:56 +01:00
parent c69f228261
commit ccacf50db5
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -1,8 +1,6 @@
import gzip
import inspect
import json
import logging
import os
import pathlib
import platform
import shutil