This commit is contained in:
bitcoinafterlife
2025-03-23 13:53:10 -04:00
committed by bitcoinafterlife
commit cea9579406
23 changed files with 5166 additions and 0 deletions

15
bal_resources.py Normal file
View File

@@ -0,0 +1,15 @@
import os
PLUGIN_DIR = os.path.split(os.path.realpath(__file__))[0]
DEFAULT_ICON = 'bal32x32.png'
DEFAULT_ICON_PATH = 'icons'
def icon_path(icon_basename: str = DEFAULT_ICON):
path = resource_path(DEFAULT_ICON_PATH,icon_basename)
return path
def resource_path(*parts):
return os.path.join(PLUGIN_DIR, *parts)