src/eric7/QScintilla/Shell.py

branch
server
changeset 10630
552a790fd9bc
parent 10597
fbe93720ee9f
child 10632
1109854f15f9
equal deleted inserted replaced
10629:b0d14cba79b1 10630:552a790fd9bc
32 from eric7.Debugger.DebugClientCapabilities import HasCompleter 32 from eric7.Debugger.DebugClientCapabilities import HasCompleter
33 from eric7.EricGui import EricPixmapCache 33 from eric7.EricGui import EricPixmapCache
34 from eric7.EricWidgets import EricFileDialog, EricMessageBox 34 from eric7.EricWidgets import EricFileDialog, EricMessageBox
35 from eric7.EricWidgets.EricApplication import ericApp 35 from eric7.EricWidgets.EricApplication import ericApp
36 from eric7.EricWidgets.EricSimpleHelpDialog import EricSimpleHelpDialog 36 from eric7.EricWidgets.EricSimpleHelpDialog import EricSimpleHelpDialog
37 from eric7.SystemUtilities import FileSystemUtilities
37 from eric7.UI.SearchWidget import SearchWidget 38 from eric7.UI.SearchWidget import SearchWidget
38 39
39 from . import Lexers 40 from . import Lexers
40 from .QsciScintillaCompat import QsciScintillaCompat 41 from .QsciScintillaCompat import QsciScintillaCompat
41 42
2626 def __projectOpened(self): 2627 def __projectOpened(self):
2627 """ 2628 """
2628 Private slot to start the shell for the opened project. 2629 Private slot to start the shell for the opened project.
2629 """ 2630 """
2630 if Preferences.getProject("RestartShellForProject"): 2631 if Preferences.getProject("RestartShellForProject"):
2632 ppath = self.__project.getProjectPath()
2631 self.dbs.startClient( 2633 self.dbs.startClient(
2632 False, forProject=True, workingDir=self.__project.getProjectPath() 2634 False,
2635 forProject=True,
2636 workingDir=ppath,
2637 startRemote=FileSystemUtilities.isRemoteFileName(ppath)
2633 ) 2638 )
2634 self.__currentWorkingDirectory = self.__project.getProjectPath() 2639 self.__currentWorkingDirectory = self.__project.getProjectPath()
2635 self.__getBanner() 2640 self.__getBanner()
2636 2641
2637 def __projectClosed(self): 2642 def __projectClosed(self):

eric ide

mercurial