eric6/UI/UserInterface.py

changeset 8047
b5594178c7fa
parent 8019
5fb467ac4233
child 8077
1fd8f611f26a
equal deleted inserted replaced
8045:4d5209dc6eb4 8047:b5594178c7fa
1375 @param args list of files to open<br /> 1375 @param args list of files to open<br />
1376 The args are processed one at a time. All arguments after a 1376 The args are processed one at a time. All arguments after a
1377 '--' option are considered debug arguments to the program 1377 '--' option are considered debug arguments to the program
1378 for the debugger. All files named before the '--' option 1378 for the debugger. All files named before the '--' option
1379 are opened in a text editor, unless the argument ends in 1379 are opened in a text editor, unless the argument ends in
1380 .e4p, then it is opened as a project file. If it ends in 1380 .epj or .e4p, then it is opened as a project file. If it
1381 .e4m or .e5m, it is opened as a multiproject. 1381 ends in .emj, .e4m or .e5m, it is opened as a multi project.
1382 """ 1382 """
1383 # check and optionally read a crash session and ignore any arguments 1383 # check and optionally read a crash session and ignore any arguments
1384 if self.__readCrashSession(): 1384 if self.__readCrashSession():
1385 return 1385 return
1386 1386
1436 ext = os.path.splitext(arg)[1] 1436 ext = os.path.splitext(arg)[1]
1437 ext = os.path.normcase(ext) 1437 ext = os.path.normcase(ext)
1438 except IndexError: 1438 except IndexError:
1439 ext = "" 1439 ext = ""
1440 1440
1441 if ext in ['.e4p']: 1441 if ext in ('.epj', '.e4p'):
1442 self.project.openProject(arg) 1442 self.project.openProject(arg)
1443 opens += 1 1443 opens += 1
1444 elif ext in ['.e4m', '.e5m']: 1444 elif ext in ('.emj', '.e4m', '.e5m'):
1445 self.multiProject.openMultiProject(arg) 1445 self.multiProject.openMultiProject(arg)
1446 opens += 1 1446 opens += 1
1447 else: 1447 else:
1448 self.viewmanager.openFiles(arg) 1448 self.viewmanager.openFiles(arg)
1449 opens += 1 1449 opens += 1

eric ide

mercurial