1
0

rm qt icons file

so we don't need pyrcc5, which is not deterministic,
and so we don't need the submodule for the icons

based on electrumsv/electrumsv@bf8802c2ea
This commit is contained in:
SomberNight
2019-02-01 19:01:21 +01:00
parent 3ad6f738bd
commit 16bac5fd73
38 changed files with 109 additions and 216 deletions

View File

@@ -488,6 +488,15 @@ def user_dir():
#raise Exception("No home directory found in environment variables.")
return
def resource_path(*parts):
return os.path.join(base_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]
def is_valid_email(s):
regexp = r"[^@]+@[^@]+\.[^@]+"
return re.match(regexp, s) is not None