scripts/create_windows_links.py

changeset 7836
2f0d208b8137
parent 7360
9190402e4505
child 7923
91e843545d9a
equal deleted inserted replaced
7835:0835ed67714b 7836:2f0d208b8137
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