Get absolute resource path of exterior package
python -m pip install absresgetter
There is only one method. getabsres(res: str) -> str
This package find the module in the stack which includes relative resource path like 'ico/sample.png'.
You can get the absolute path like 'C:/.../sample_exists_directory/ico/sample.png'.
import absresgetter
...
print(absresgetter.getabsres('ico/dark-notepad.svg')) # C:/.../ico_dark_notepad_exists_directory/ico/dark-notepad.svg
I hope this kind of feature is inlcuded in official libarary.
I really don't want to be bothered with.