diff options
Diffstat (limited to 'ffi/python/she.py')
-rw-r--r-- | ffi/python/she.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ffi/python/she.py b/ffi/python/she.py index e509f65..ab89752 100644 --- a/ffi/python/she.py +++ b/ffi/python/she.py @@ -26,13 +26,14 @@ def init(curveType=MCL_BN254): global lib name = platform.system() if name == 'Linux': - suf = 'so' + libName = 'libmclshe256.so' elif name == 'Darwin': - suf = 'dylib' + libName = 'libmclshe256.dylib' + elif name == 'Windows': + libName = 'mclshe256.dll' else: raise RuntimeError("not support yet", name) - libname = "libmclshe256." + suf - lib = cdll.LoadLibrary(libname) + lib = cdll.LoadLibrary(libName) ret = lib.sheInit(MCL_BN254, MCLBN_COMPILED_TIME_VAR) if ret != 0: raise RuntimeError("sheInit", ret) |