src/eric7/QScintilla/Shell.py

branch
server
changeset 10630
552a790fd9bc
parent 10597
fbe93720ee9f
child 10632
1109854f15f9
--- a/src/eric7/QScintilla/Shell.py	Tue Feb 27 15:05:53 2024 +0100
+++ b/src/eric7/QScintilla/Shell.py	Fri Mar 08 15:30:23 2024 +0100
@@ -34,6 +34,7 @@
 from eric7.EricWidgets import EricFileDialog, EricMessageBox
 from eric7.EricWidgets.EricApplication import ericApp
 from eric7.EricWidgets.EricSimpleHelpDialog import EricSimpleHelpDialog
+from eric7.SystemUtilities import FileSystemUtilities
 from eric7.UI.SearchWidget import SearchWidget
 
 from . import Lexers
@@ -2628,8 +2629,12 @@
         Private slot to start the shell for the opened project.
         """
         if Preferences.getProject("RestartShellForProject"):
+            ppath = self.__project.getProjectPath()
             self.dbs.startClient(
-                False, forProject=True, workingDir=self.__project.getProjectPath()
+                False,
+                forProject=True,
+                workingDir=ppath,
+                startRemote=FileSystemUtilities.isRemoteFileName(ppath)
             )
             self.__currentWorkingDirectory = self.__project.getProjectPath()
             self.__getBanner()

eric ide

mercurial