#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this software. #----------------------------------------------------------------------------- """ pywin32 module supports frozen mode. In frozen mode it is looking in sys.path for file pywintypesXX.dll. Include the pywintypesXX.dll as a data file. The path to this dll is contained in __file__ attribute. """ import os.path from PyInstaller.utils.hooks.hookutils import get_module_file_attribute _pth = get_module_file_attribute('pywintypes') binaries = [(os.path.basename(_pth), _pth)]
# # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this software. #----------------------------------------------------------------------------- """ pywin32 module supports frozen mode. In frozen mode it is looking in sys.path for file pythoncomXX.dll. Include the pythoncomXX.dll as a data file. The path to this dll is contained in __file__ attribute. """ import os.path from PyInstaller.utils.hooks.hookutils import get_module_file_attribute _pth = get_module_file_attribute('pythoncom') # Binaries that should be included with the module 'pythoncom'. # List mod.pyinstaller_binaries gets extended. binaries = [ ( # Relative path in the ./dist/app_name/ directory. os.path.basename(_pth), # Absolute path on hard disk. _pth, ) ]