scripts/create_windows_links.py

branch
maintenance
changeset 7850
e64b178499da
parent 7836
2f0d208b8137
child 7923
91e843545d9a
equal deleted inserted replaced
7825:3e7d767119a9 7850:e64b178499da
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)

eric ide

mercurial