diff --git a/src/helper_random.py b/src/helper_random.py index 9a29d5e2..d0fcce42 100644 --- a/src/helper_random.py +++ b/src/helper_random.py @@ -3,7 +3,10 @@ import os import random -from pyelliptic.openssl import OpenSSL +try: + from pyelliptic.openssl import OpenSSL +except: + from .pyelliptic.openssl import OpenSSL NoneType = type(None) diff --git a/src/tests/test_sqlthread.py b/src/tests/test_sqlthread.py index 6d6660f7..151b5095 100644 --- a/src/tests/test_sqlthread.py +++ b/src/tests/test_sqlthread.py @@ -9,7 +9,7 @@ import unittest # # skip_python3() -os.environ['BITMESSAGE_HOME'] = tempfile.gettempdir() +# os.environ['BITMESSAGE_HOME'] = tempfile.gettempdir() from pybitmessage.helper_sql import ( sqlQuery, sql_ready, sqlStoredProcedure, SqlBulkExecute, sqlExecuteScript, sqlExecute) # noqa:E402 from pybitmessage.class_sqlThread import sqlThread, UpgradeDB # noqa:E402