scripts/uninstall.py

branch
eric7
changeset 10331
c1a2ff7e3575
parent 10300
60e8f2175b3b
child 10334
24300d16a154
equal deleted inserted replaced
10330:5ea038882dd6 10331:c1a2ff7e3575
11 """ 11 """
12 12
13 import argparse 13 import argparse
14 import contextlib 14 import contextlib
15 import glob 15 import glob
16 import importlib
16 import os 17 import os
17 import shutil 18 import shutil
18 import sys 19 import sys
19 import sysconfig 20 import sysconfig
20 21
235 236
236 def uninstallWindowsLinks(): 237 def uninstallWindowsLinks():
237 """ 238 """
238 Clean up the Desktop and Start Menu entries for Windows. 239 Clean up the Desktop and Start Menu entries for Windows.
239 """ 240 """
240 try: 241 if importlib.util.find_spec("pywintypes") is None:
241 from pywintypes import com_error # __IGNORE_WARNING__
242 except ImportError:
243 # links were not created by install.py 242 # links were not created by install.py
244 return 243 return
245 244
246 regPath = ( 245 regPath = (
247 "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer" 246 "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer"

eric ide

mercurial