|
|
|
|
@ -1,3 +1,16 @@
|
|
|
|
|
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__)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from .version import ELECTRUM_VERSION |
|
|
|
|
from .util import format_satoshis |
|
|
|
|
from .wallet import Wallet |
|
|
|
|
|