Menu

#678 Cannot find 'win32com.shell' as relative or absolute import

v1.0 (example)
open
nobody
None
5
2014-08-27
2014-08-27
jacky
No

py2exe(Found soultion)/Nutika(No soultion yet) will fail to compile the code if you include import win32com.shell or from win32com.shell import shell, shellcon, Nuitka doesn't find imported win32com.shell module win32com allow loading of COM extensions during run time. The actual extensions reside in the win32comext directory under site-packages and can't be loaded directly. win32com's path variable changenes to point to both win32com and win32comext (Bad habit considuring this win32 type of extension) Nutika can't handle runtime changes in path.

My suggestion will be to change the way it works and link it directly (the right way in my opnion) to overcome this issue for Nuitka/IronPython and many other great projects now or in the future

Discussion