209 from pywintypes import com_error # __IGNORE_WARNING__ |
209 from pywintypes import com_error # __IGNORE_WARNING__ |
210 except ImportError: |
210 except ImportError: |
211 # links were not created by install.py |
211 # links were not created by install.py |
212 return |
212 return |
213 |
213 |
214 regPath = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer" + \ |
214 regPath = ( |
215 "\\User Shell Folders" |
215 "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer" + |
|
216 "\\User Shell Folders" |
|
217 ) |
216 |
218 |
217 # 1. cleanup desktop links |
219 # 1. cleanup desktop links |
218 regName = "Desktop" |
220 regName = "Desktop" |
219 desktopEntry = getWinregEntry(regName, regPath) |
221 desktopEntry = getWinregEntry(regName, regPath) |
220 if desktopEntry: |
222 if desktopEntry: |