install: added capability to install the pywin32 package upon request in order to create shortcut links.

Sat, 17 Nov 2018 17:00:15 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 17 Nov 2018 17:00:15 +0100
changeset 6592
bba271a63b81
parent 6591
7994baeb7abe
child 6593
3d0144c8f77a

install: added capability to install the pywin32 package upon request in order to create shortcut links.

install.py file | annotate | diff | comparison | revisions
--- 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