--- a/src/eric7/eric7_post_install.py Fri Nov 04 13:46:31 2022 +0100 +++ b/src/eric7/eric7_post_install.py Fri Nov 04 13:52:26 2022 +0100 @@ -8,11 +8,11 @@ Module implementing the post install logic for 'pip install'. """ -import sys +import contextlib import os import shutil +import sys import sysconfig -import contextlib ###################################################################### ## Post installation hooks for Windows below @@ -122,8 +122,8 @@ @param iconPath path of the icon file @type str """ + from pywintypes import com_error from win32com.client import Dispatch - from pywintypes import com_error with contextlib.suppress(com_error): shell = Dispatch("WScript.Shell")