1
0

fix: qt icons not available when installed as python package

follow-up #5053
This commit is contained in:
SomberNight
2019-02-01 23:32:24 +01:00
parent 7ea01e9e91
commit 4fa87d8595
4 changed files with 9 additions and 5 deletions

View File

@@ -490,11 +490,11 @@ def user_dir():
def resource_path(*parts):
return os.path.join(base_dir, *parts)
return os.path.join(pkg_dir, *parts)
# absolute path to project root dir when running from source
base_dir = os.path.split(os.path.dirname(os.path.realpath(__file__)))[0]
# absolute path to python package folder of electrum ("lib")
pkg_dir = os.path.split(os.path.realpath(__file__))[0]
def is_valid_email(s):