uninstall.py

changeset 3678
2866383fd342
parent 3670
f0cb7579c0b4
child 3697
c947a7eaace4
equal deleted inserted replaced
3677:a53cf139293f 3678:2866383fd342
105 if os.path.exists(name): 105 if os.path.exists(name):
106 os.remove(name) 106 os.remove(name)
107 107
108 # Remove the wrapper scripts 108 # Remove the wrapper scripts
109 rem_wnames = [ 109 rem_wnames = [
110 "eric6-api", "eric6-compare",
111 "eric6-configure", "eric6-diff",
112 "eric6-doc",
113 "eric6-qregexp", "eric6-re",
114 "eric6-trpreviewer", "eric6-uipreviewer",
115 "eric6-unittest", "eric6",
116 "eric6-tray", "eric6-editor",
117 "eric6-plugininstall", "eric6-pluginuninstall",
118 "eric6-pluginrepository", "eric6-sqlbrowser",
119 "eric6-webbrowser", "eric6-iconeditor",
120 ]
121 rem_wnames2 = [
122 "eric6_api", "eric6_compare", 110 "eric6_api", "eric6_compare",
123 "eric6_configure", "eric6_diff", 111 "eric6_configure", "eric6_diff",
124 "eric6_doc", "eric6_qregularexpression", 112 "eric6_doc", "eric6_qregularexpression",
125 "eric6_qregexp", "eric6_re", 113 "eric6_qregexp", "eric6_re",
126 "eric6_trpreviewer", "eric6_uipreviewer", 114 "eric6_trpreviewer", "eric6_uipreviewer",
131 "eric6_webbrowser", "eric6_iconeditor", 119 "eric6_webbrowser", "eric6_iconeditor",
132 "eric6_snap", 120 "eric6_snap",
133 ] 121 ]
134 if includePythonVariant: 122 if includePythonVariant:
135 marker = PythonMarkers[sys.version_info.major] 123 marker = PythonMarkers[sys.version_info.major]
136 rem_wnames.extend([n + marker for n in rem_wnames2]) 124 rem_wnames = [n + marker for n in rem_wnames]
137 else:
138 rem_wnames.extend(rem_wnames2)
139 125
140 try: 126 try:
141 for rem_wname in rem_wnames: 127 for rem_wname in rem_wnames:
142 rwname = wrapperName(getConfig('bindir'), rem_wname) 128 rwname = wrapperName(getConfig('bindir'), rem_wname)
143 if os.path.exists(rwname): 129 if os.path.exists(rwname):

eric ide

mercurial