Skip to content

yjg30737/absresgetter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

absresgetter

Get absolute resource path of exterior package

Setup

python -m pip install absresgetter

Description

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'.

Example

import absresgetter
...
print(absresgetter.getabsres('ico/dark-notepad.svg')) # C:/.../ico_dark_notepad_exists_directory/ico/dark-notepad.svg

Gibberish

I hope this kind of feature is inlcuded in official libarary.

I really don't want to be bothered with.

About

Get absolute resource path of exterior package

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages