scripts/create_windows_links.py

branch
eric7
changeset 10065
de4ae767b0e3
parent 9653
e67609152c5e
child 10372
1444b4bee64b
equal deleted inserted replaced
10064:8c3207703dac 10065:de4ae767b0e3
20 sys.exit(1) 20 sys.exit(1)
21 21
22 from eric7.Globals import getConfig 22 from eric7.Globals import getConfig
23 23
24 24
25 def main(argv): 25 def main():
26 """ 26 """
27 Create Desktop and Start Menu links. 27 Create Desktop and Start Menu links.
28
29 @param argv list of command line arguments
30 @type list of str
31 """ 28 """
32 if sys.platform.startswith(("win", "cygwin")): 29 if sys.platform.startswith(("win", "cygwin")):
33 regPath = ( 30 regPath = (
34 "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer" 31 "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer"
35 + "\\User Shell Folders" 32 + "\\User Shell Folders"
155 return "eric7 IDE (Python {0}.{1})".format(majorVersion, minorVersion) 152 return "eric7 IDE (Python {0}.{1})".format(majorVersion, minorVersion)
156 153
157 154
158 if __name__ == "__main__": 155 if __name__ == "__main__":
159 try: 156 try:
160 main(sys.argv) 157 main()
161 except SystemExit: 158 except SystemExit:
162 raise 159 raise
163 except Exception: 160 except Exception:
164 print( 161 print(
165 """An internal error occured. Please report all the output""" 162 """An internal error occured. Please report all the output"""

eric ide

mercurial