Vehicle-Anti-Theft-Face-Rec.../venv/Lib/site-packages/sklearn/_distributor_init.py

20 lines
523 B
Python
Raw Permalink Normal View History

2020-11-12 16:05:57 +00:00
'''
Helper to preload the OpenMP dll to prevent "dll not found"
errors.
Once a DLL is preloaded, its namespace is made available to any
subsequent DLL. This file originated in the scikit-learn-wheels
github repo, and is created as part of the scripts that build the
wheel.
'''
import os
import os.path as op
from ctypes import WinDLL
if os.name == 'nt':
# Pre-load the DLL stored in sklearn/.libs by convention.
dll_path = op.join(op.dirname(__file__), '.libs', 'vcomp140.dll')
WinDLL(op.abspath(dll_path))