diff --git a/src/helper_random.py b/src/helper_random.py index 2e6a151b..2ef4f78c 100644 --- a/src/helper_random.py +++ b/src/helper_random.py @@ -6,7 +6,7 @@ import random try: from pyelliptic.openssl import OpenSSL except ImportError: - from .pyelliptic.openssl import OpenSSL + from pybitmessage.pyelliptic.openssl import OpenSSL NoneType = type(None) diff --git a/src/highlevelcrypto.py b/src/highlevelcrypto.py index 995c5d00..ebfeff7c 100644 --- a/src/highlevelcrypto.py +++ b/src/highlevelcrypto.py @@ -15,10 +15,10 @@ try: from pyelliptic import OpenSSL from pyelliptic import arithmetic as a except ImportError: - from . import pyelliptic - from .bmconfigparser import BMConfigParser - from .pyelliptic import OpenSSL - from .pyelliptic import arithmetic as a + from pybitmessage import pyelliptic + from pybitmessage.bmconfigparser import BMConfigParser + from pybitmessage.pyelliptic import OpenSSL + from pybitmessage.pyelliptic import arithmetic as a def makeCryptor(privkey): diff --git a/src/protocol.py b/src/protocol.py index eb106e24..f3db2134 100644 --- a/src/protocol.py +++ b/src/protocol.py @@ -25,16 +25,16 @@ try: from helper_sql import sqlExecute from version import softwareVersion except ImportError: - from . import defaults - from . import highlevelcrypto - from . import state - from .addresses import ( + from pybitmessage import defaults + from pybitmessage import highlevelcrypto + from pybitmessage import state + from pybitmessage.addresses import ( encodeVarint, decodeVarint, decodeAddress, varintDecodeError) - from .bmconfigparser import BMConfigParser - from .debug import logger - from .fallback import RIPEMD160Hash - from .helper_sql import sqlExecute - from .version import softwareVersion + from pybitmessage.bmconfigparser import BMConfigParser + from pybitmessage.debug import logger + from pybitmessage.fallback import RIPEMD160Hash + from pybitmessage.helper_sql import sqlExecute + from pybitmessage.version import softwareVersion PY3 = sys.version_info[0] >= 3