UI/UserInterface.py

changeset 4107
501c964e20e7
parent 4083
4418377391bc
child 4113
feac3108a780
equal deleted inserted replaced
4103:ce70c1a618ca 4107:501c964e20e7
1050 The args are processed one at a time. All arguments after a 1050 The args are processed one at a time. All arguments after a
1051 '--' option are considered debug arguments to the program 1051 '--' option are considered debug arguments to the program
1052 for the debugger. All files named before the '--' option 1052 for the debugger. All files named before the '--' option
1053 are opened in a text editor, unless the argument ends in 1053 are opened in a text editor, unless the argument ends in
1054 .e4p, then it is opened as a project file. If it ends in 1054 .e4p, then it is opened as a project file. If it ends in
1055 .e4m, it is opened as a multiproject. 1055 .e4m or .e5m, it is opened as a multiproject.
1056 """ 1056 """
1057 # no args, return 1057 # no args, return
1058 if args is None: 1058 if args is None:
1059 if not self.__noOpenAtStartup: 1059 if not self.__noOpenAtStartup:
1060 self.__openOnStartup() 1060 self.__openOnStartup()
1109 ext = "" 1109 ext = ""
1110 1110
1111 if ext in ['.e4p']: 1111 if ext in ['.e4p']:
1112 self.project.openProject(arg) 1112 self.project.openProject(arg)
1113 opens += 1 1113 opens += 1
1114 elif ext in ['.e4m']: 1114 elif ext in ['.e4m', '.e5m']:
1115 self.multiProject.openMultiProject(arg) 1115 self.multiProject.openMultiProject(arg)
1116 opens += 1 1116 opens += 1
1117 else: 1117 else:
1118 self.viewmanager.openFiles(arg) 1118 self.viewmanager.openFiles(arg)
1119 opens += 1 1119 opens += 1

eric ide

mercurial