src/eric7/Graphics/ApplicationDiagramBuilder.py

branch
server
changeset 10596
ea35c92a3c7c
parent 10586
1b365d69ccef
child 10610
bb0149571d94
diff -r 6156d9675f62 -r ea35c92a3c7c src/eric7/Graphics/ApplicationDiagramBuilder.py
--- a/src/eric7/Graphics/ApplicationDiagramBuilder.py	Mon Feb 19 19:37:00 2024 +0100
+++ b/src/eric7/Graphics/ApplicationDiagramBuilder.py	Thu Feb 22 16:26:46 2024 +0100
@@ -218,12 +218,13 @@
             # no root path detected
             return
 
-        if FileSystemUtilities.isRemoteFileName(rpath):
-            root = self.__remotefsInterface.splitdrive(rpath)[1][1:].replace(
+        root = (
+            self.__remotefsInterface.splitdrive(rpath)[1][1:].replace(
                 self.__remotefsInterface.separator(), "."
             )
-        else:
-            root = os.path.splitdrive(rpath)[1][1:].replace(os.sep, ".")
+            if FileSystemUtilities.isRemoteFileName(rpath)
+            else os.path.splitdrive(rpath)[1][1:].replace(os.sep, ".")
+        )
 
         packages = {}
         self.__shapes = {}

eric ide

mercurial