change import logic
This commit is contained in:
parent
f072036e75
commit
5dbb95f631
|
@ -2,11 +2,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
|
from pyelliptic.openssl import OpenSSL
|
||||||
try:
|
|
||||||
from pyelliptic.openssl import OpenSSL
|
|
||||||
except ModuleNotFoundError:
|
|
||||||
from .pyelliptic.openssl import OpenSSL
|
|
||||||
|
|
||||||
NoneType = type(None)
|
NoneType = type(None)
|
||||||
|
|
||||||
|
|
|
@ -11,22 +11,13 @@ from binascii import hexlify
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pyelliptic
|
import pyelliptic
|
||||||
except ImportError:
|
|
||||||
from . import pyelliptic
|
|
||||||
|
|
||||||
try:
|
|
||||||
from bmconfigparser import BMConfigParser
|
from bmconfigparser import BMConfigParser
|
||||||
except ImportError:
|
|
||||||
from .bmconfigparser import BMConfigParser
|
|
||||||
|
|
||||||
try:
|
|
||||||
from pyelliptic import OpenSSL
|
from pyelliptic import OpenSSL
|
||||||
except ImportError:
|
|
||||||
from .pyelliptic import OpenSSL
|
|
||||||
|
|
||||||
try:
|
|
||||||
from pyelliptic import arithmetic as a
|
from pyelliptic import arithmetic as a
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
from . import pyelliptic
|
||||||
|
from .bmconfigparser import BMConfigParser
|
||||||
|
from .pyelliptic import OpenSSL
|
||||||
from .pyelliptic import arithmetic as a
|
from .pyelliptic import arithmetic as a
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user