src/eric7/eric7_post_install.py

branch
eric7
changeset 9473
3f23dbf37dbe
parent 9381
3c9192161833
child 9482
a2bc06a54d9d
--- 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")

eric ide

mercurial