UI/UserInterface.py

changeset 2559
56b91939d319
parent 2548
03c3840f887d
child 2560
cb82017d4dac
equal deleted inserted replaced
2556:425b01c6a69d 2559:56b91939d319
1016 if argsStr is None: 1016 if argsStr is None:
1017 argsStr = arg 1017 argsStr = arg
1018 else: 1018 else:
1019 argsStr = "{0} {1}".format(argsStr, arg) 1019 argsStr = "{0} {1}".format(argsStr, arg)
1020 continue 1020 continue
1021 1021
1022 ext = os.path.splitext(arg)[1] 1022 try:
1023 ext = os.path.normcase(ext) 1023 ext = os.path.splitext(arg)[1]
1024 ext = os.path.normcase(ext)
1025 except IndexError:
1026 ext = ""
1024 1027
1025 if ext in ['.e4p']: 1028 if ext in ['.e4p']:
1026 self.project.openProject(arg) 1029 self.project.openProject(arg)
1027 opens += 1 1030 opens += 1
1028 elif ext in ['.e4m']: 1031 elif ext in ['.e4m']:

eric ide

mercurial