fixed import error

This commit is contained in:
cis-kuldeep 2021-07-15 18:11:38 +05:30
parent 10250f3730
commit 4954e6dba7
No known key found for this signature in database
GPG Key ID: 67B47D8A06FA45E4
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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