scripts/create_windows_links.py

branch
eric7
changeset 10689
3ede487187f2
parent 10518
1682f3203ae5
child 10983
8b9913066b8c
equal deleted inserted replaced
10688:0d9853ceb288 10689:3ede487187f2
101 shortcut.WorkingDirectory = os.path.dirname(targetPath) 101 shortcut.WorkingDirectory = os.path.dirname(targetPath)
102 shortcut.IconLocation = iconPath 102 shortcut.IconLocation = iconPath
103 shortcut.save() 103 shortcut.save()
104 104
105 105
106 def windowsDesktopNames():
107 """
108 Function to generate the link names for the Windows Desktop.
109
110 @return list of desktop link names
111 @rtype list of str
112 """
113 return [e[0] for e in windowsDesktopEntries()]
114
115
116 def windowsDesktopEntries(): 106 def windowsDesktopEntries():
117 """ 107 """
118 Function to generate data for the Windows Desktop links. 108 Function to generate data for the Windows Desktop links.
119 109
120 @return list of tuples containing the desktop link name, 110 @return list of tuples containing the desktop link name,

eric ide

mercurial