Sat, 17 Nov 2018 17:00:15 +0100
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"