URI: 
       tstart using util.resource_path - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 5a1778b7fe80657dbd599149c370392d5f5ec5f5
   DIR parent 67d080b34a244f6e13c43052a0f4ba3d7c6eb346
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Mon,  4 Feb 2019 18:56:51 +0100
       
       start using util.resource_path
       
       Diffstat:
         M electrum/exchange_rate.py           |       6 +++---
         M electrum/mnemonic.py                |       4 ++--
       
       2 files changed, 5 insertions(+), 5 deletions(-)
       ---
   DIR diff --git a/electrum/exchange_rate.py b/electrum/exchange_rate.py
       t@@ -14,8 +14,8 @@ from typing import Sequence
        
        from .bitcoin import COIN
        from .i18n import _
       -from .util import PrintError, ThreadJob, make_dir, log_exceptions
       -from .util import make_aiohttp_session
       +from .util import (PrintError, ThreadJob, make_dir, log_exceptions,
       +                   make_aiohttp_session, resource_path)
        from .network import Network
        from .simple_config import SimpleConfig
        
       t@@ -394,7 +394,7 @@ def dictinvert(d):
            return inv
        
        def get_exchanges_and_currencies():
       -    path = os.path.join(os.path.dirname(__file__), 'currencies.json')
       +    path = resource_path('currencies.json')
            try:
                with open(path, 'r', encoding='utf-8') as f:
                    return json.loads(f.read())
   DIR diff --git a/electrum/mnemonic.py b/electrum/mnemonic.py
       t@@ -30,7 +30,7 @@ import string
        
        import ecdsa
        
       -from .util import print_error
       +from .util import print_error, resource_path
        from .bitcoin import is_old_seed, is_new_seed
        from . import version
        
       t@@ -88,7 +88,7 @@ def normalize_text(seed: str) -> str:
            return seed
        
        def load_wordlist(filename):
       -    path = os.path.join(os.path.dirname(__file__), 'wordlist', filename)
       +    path = resource_path('wordlist', filename)
            with open(path, 'r', encoding='utf-8') as f:
                s = f.read().strip()
            s = unicodedata.normalize('NFKD', s)