zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
U
U±dvã@s8dZddlZddlmZmZddlmZmZdd„ZdS)a(
PyWin32 package 'win32com' extends it's __path__ attribute with win32comext
directory and thus PyInstaller is not able to find modules in it. For example
module 'win32com.shell' is in reality 'win32comext.shell'.
 
>>> win32com.__path__
['win32com', 'C:\Python27\Lib\site-packages\win32comext']
 
éN)ÚloggerÚexec_statement)Úis_winÚ    is_cygwincCshts ts dStdƒ ¡}|s*t d¡dStj |¡}tj     tj |¡d¡}t d|¡| 
|¡dS)Nz‡
        try:
            from win32com import __file__
            print(__file__)
        except Exception:
            pass
        zwin32com: module not availableZ win32comextz(win32com: extending __path__ with dir %r) rrrÚstriprÚdebugÚosÚpathÚdirnameÚjoinZappend_package_path)ÚapiZ win32com_fileZ win32com_dirZ
comext_dir©r ú|d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\_pyinstaller_hooks_contrib/hooks/pre_safe_import_module/hook-win32com.pyÚpre_safe_import_modulesÿ
 r)    Ú__doc__rZPyInstaller.utils.hooksrrZPyInstaller.compatrrrr r r rÚ<module> s