def load_pythoncom(finder, module):
"""the pythoncom 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 pythoncom
finder.IncludeFiles(pythoncom.__file__,
os.path.join("lib", os.path.basename(pythoncom.__file__)),
copyDependentFiles = False)
评论列表
文章目录