install.py

changeset 6592
bba271a63b81
parent 6530
25b9dcfd6fcc
child 6593
3d0144c8f77a
--- a/install.py	Sat Nov 17 15:07:53 2018 +0100
+++ b/install.py	Sat Nov 17 17:00:15 2018 +0100
@@ -1104,11 +1104,16 @@
         # check, if pywin32 is available
         from win32com.client import Dispatch    # __IGNORE_WARNING__
     except ImportError:
-        print(
-            "\nThe Python package 'pywin32' is not installed. Desktop and"
-            " Start Menu entries will not be created."
+        installed = pipInstall(
+            "pywin32",
+            "\nThe Python package 'pywin32' could not be imported."
         )
-        return
+        if not installed:
+            print(
+                "\nThe Python package 'pywin32' is not installed. Desktop and"
+                " Start Menu entries will not be created."
+            )
+            return
     
     regPath = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer" + \
               "\\User Shell Folders"

eric ide

mercurial