def load_pywintypes(finder, module):
"""the pywintypes module is actually contained in a DLL but since those
cannot be loaded directly in Python 2.5 and higher a special module is
used to perform that task; simply use that technique directly to
determine the name of the DLL and ensure it is included as a file in the
target directory."""
import pywintypes
finder.IncludeFiles(pywintypes.__file__,
os.path.join("lib", os.path.basename(pywintypes.__file__)),
copyDependentFiles = False)
# PyQt5 and PyQt4 can't both be loaded in the same process, so we cache the
# QtCore module so we can still return something sensible if we try to load
# both.
评论列表
文章目录