Files
pallectrum/electrum/__init__.py

35 lines
1.0 KiB
Python
Raw Normal View History

import sys
import os
# these are ~duplicated from run_electrum:
is_bundle = getattr(sys, 'frozen', False)
is_local = not is_bundle and os.path.exists(os.path.join(os.path.dirname(os.path.dirname(__file__)), "electrum.desktop"))
# when running from source, on Windows, also search for DLLs in inner 'electrum' folder
if is_local and os.name == 'nt':
if hasattr(os, 'add_dll_directory'): # requires python 3.8+
os.add_dll_directory(os.path.dirname(__file__))
class GuiImportError(ImportError):
pass
2017-01-22 21:25:24 +03:00
from .version import ELECTRUM_VERSION
from .util import format_satoshis
from .wallet import Wallet
2017-01-22 21:25:24 +03:00
from .storage import WalletStorage
from .coinchooser import COIN_CHOOSERS
from .network import Network, pick_random_server
2018-08-16 18:16:25 +02:00
from .interface import Interface
from .simple_config import SimpleConfig
2017-01-22 21:25:24 +03:00
from . import bitcoin
from . import transaction
from . import daemon
from .transaction import Transaction
from .plugin import BasePlugin
2017-01-22 21:25:24 +03:00
from .commands import Commands, known_commands
2018-10-31 16:21:04 +01:00
__version__ = ELECTRUM_VERSION