<gh_stars>1-10
# Copyright (c) 1994-2022 <NAME>
# Licensed under the zlib/libpng License
# https://opensource.org/licenses/Zlib

import sys
import os
import platform
import sysconfig
import ctypes as ct
from functools import partial

this_dir = os.path.dirname(os.path.abspath(__file__))

dll_suffix = (("" if sys.version_info[0] <= 2 else
               "." + platform.python_implementation()[:2].lower() +
               sysconfig.get_python_version().replace(".","") + "-" +
               sysconfig.get_platform().replace("-","_")) +
              (sysconfig.get_config_var("EXT_SUFFIX") or ".pyd"))

DLL_PATH = os.path.join(this_dir, "crc" + dll_suffix)

from ctypes  import CDLL      as DLL
from ctypes  import CFUNCTYPE as CFUNC
from _ctypes import dlclose

DLL = partial(DLL, mode=ct.RTLD_GLOBAL)

# Copyright (c) 1994-2022 <NAME>
# Licensed under the zlib/libpng License
# https://opensource.org/licenses/Zlib

import sys
import os
import platform
import sysconfig
import ctypes as ct
from functools import partial

this_dir = os.path.dirname(os.path.abspath(__file__))

dll_suffix = (("" if sys.version_info[0] <= 2 else
               "." + platform.python_implementation()[:2].lower() +
               sysconfig.get_python_version().replace(".","") + "-" +
               sysconfig.get_platform().replace("-","_")) +
              (sysconfig.get_config_var("EXT_SUFFIX") or ".pyd"))

DLL_PATH = os.path.join(this_dir, "crc" + dll_suffix)

from ctypes  import CDLL      as DLL
from ctypes  import CFUNCTYPE as CFUNC
from _ctypes import dlclose

DLL = partial(DLL, mode=ct.RTLD_GLOBAL)
# Copyright (c) 1994-2022 <NAME> # Licensed under the zlib/libpng License # https://opensource.org/licenses/Zlib