42 programsFolder = os.path.normpath(os.path.expandvars(programsEntry)) |
42 programsFolder = os.path.normpath(os.path.expandvars(programsEntry)) |
43 eric6EntryPath = os.path.join(programsFolder, windowsProgramsEntry()) |
43 eric6EntryPath = os.path.join(programsFolder, windowsProgramsEntry()) |
44 if not os.path.exists(eric6EntryPath): |
44 if not os.path.exists(eric6EntryPath): |
45 try: |
45 try: |
46 os.makedirs(eric6EntryPath) |
46 os.makedirs(eric6EntryPath) |
47 except EnvironmentError: |
47 except OSError: |
48 # maybe restrictions prohibited link creation |
48 # maybe restrictions prohibited link creation |
49 return |
49 return |
50 |
50 |
51 for linkName, targetPath, iconPath in windowsDesktopEntries(): |
51 for linkName, targetPath, iconPath in windowsDesktopEntries(): |
52 linkPath = os.path.join(eric6EntryPath, linkName) |
52 linkPath = os.path.join(eric6EntryPath, linkName) |