diff -r dac33c7fce07 -r e3642a6a1e71 scripts/create_windows_links.py --- a/scripts/create_windows_links.py Sat May 15 19:01:16 2021 +0200 +++ b/scripts/create_windows_links.py Sat May 15 20:08:03 2021 +0200 @@ -13,7 +13,7 @@ import sys import contextlib -from eric6config import getConfig +from eric7config import getConfig def main(argv): @@ -41,16 +41,16 @@ programsEntry = getWinregEntry(regName, regPath) if programsEntry: programsFolder = os.path.normpath(os.path.expandvars(programsEntry)) - eric6EntryPath = os.path.join(programsFolder, windowsProgramsEntry()) - if not os.path.exists(eric6EntryPath): + eric7EntryPath = os.path.join(programsFolder, windowsProgramsEntry()) + if not os.path.exists(eric7EntryPath): try: - os.makedirs(eric6EntryPath) + os.makedirs(eric7EntryPath) except OSError: # maybe restrictions prohibited link creation return for linkName, targetPath, iconPath in windowsDesktopEntries(): - linkPath = os.path.join(eric6EntryPath, linkName) + linkPath = os.path.join(eric7EntryPath, linkName) createWindowsShortcut(linkPath, targetPath, iconPath) @@ -123,11 +123,11 @@ """ majorVersion, minorVersion = sys.version_info[:2] entriesTemplates = [ - ("eric6 (Python {0}.{1}).lnk", - os.path.join(getConfig("bindir"), "eric6.cmd"), - os.path.join(getConfig("ericPixDir"), "eric6.ico")), - ("eric6 Browser (Python {0}.{1}).lnk", - os.path.join(getConfig("bindir"), "eric6_browser.cmd"), + ("eric7 (Python {0}.{1}).lnk", + os.path.join(getConfig("bindir"), "eric7.cmd"), + os.path.join(getConfig("ericPixDir"), "eric7.ico")), + ("eric7 Browser (Python {0}.{1}).lnk", + os.path.join(getConfig("bindir"), "eric7_browser.cmd"), os.path.join(getConfig("ericPixDir"), "ericWeb48.ico")), ] @@ -145,7 +145,7 @@ @rtype str """ majorVersion, minorVersion = sys.version_info[:2] - return "eric6 (Python {0}.{1})".format(majorVersion, minorVersion) + return "eric7 (Python {0}.{1})".format(majorVersion, minorVersion) if __name__ == "__main__":