install.py

changeset 6592
bba271a63b81
parent 6530
25b9dcfd6fcc
child 6593
3d0144c8f77a
equal deleted inserted replaced
6591:7994baeb7abe 6592:bba271a63b81
1102 """ 1102 """
1103 try: 1103 try:
1104 # check, if pywin32 is available 1104 # check, if pywin32 is available
1105 from win32com.client import Dispatch # __IGNORE_WARNING__ 1105 from win32com.client import Dispatch # __IGNORE_WARNING__
1106 except ImportError: 1106 except ImportError:
1107 print( 1107 installed = pipInstall(
1108 "\nThe Python package 'pywin32' is not installed. Desktop and" 1108 "pywin32",
1109 " Start Menu entries will not be created." 1109 "\nThe Python package 'pywin32' could not be imported."
1110 ) 1110 )
1111 return 1111 if not installed:
1112 print(
1113 "\nThe Python package 'pywin32' is not installed. Desktop and"
1114 " Start Menu entries will not be created."
1115 )
1116 return
1112 1117
1113 regPath = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer" + \ 1118 regPath = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer" + \
1114 "\\User Shell Folders" 1119 "\\User Shell Folders"
1115 1120
1116 # 1. create desktop shortcuts 1121 # 1. create desktop shortcuts

eric ide

mercurial