|
@ -14,8 +14,8 @@ from typing import Sequence |
|
|
|
|
|
|
|
|
from .bitcoin import COIN |
|
|
from .bitcoin import COIN |
|
|
from .i18n import _ |
|
|
from .i18n import _ |
|
|
from .util import PrintError, ThreadJob, make_dir, log_exceptions |
|
|
from .util import (PrintError, ThreadJob, make_dir, log_exceptions, |
|
|
from .util import make_aiohttp_session |
|
|
make_aiohttp_session, resource_path) |
|
|
from .network import Network |
|
|
from .network import Network |
|
|
from .simple_config import SimpleConfig |
|
|
from .simple_config import SimpleConfig |
|
|
|
|
|
|
|
@ -394,7 +394,7 @@ def dictinvert(d): |
|
|
return inv |
|
|
return inv |
|
|
|
|
|
|
|
|
def get_exchanges_and_currencies(): |
|
|
def get_exchanges_and_currencies(): |
|
|
path = os.path.join(os.path.dirname(__file__), 'currencies.json') |
|
|
path = resource_path('currencies.json') |
|
|
try: |
|
|
try: |
|
|
with open(path, 'r', encoding='utf-8') as f: |
|
|
with open(path, 'r', encoding='utf-8') as f: |
|
|
return json.loads(f.read()) |
|
|
return json.loads(f.read()) |
|
|