src/eric7/Graphics/ImportsDiagramBuilder.py

branch
server
changeset 10597
fbe93720ee9f
parent 10585
83e5a9a64543
child 10604
0f4017309f35
equal deleted inserted replaced
10596:ea35c92a3c7c 10597:fbe93720ee9f
71 """ 71 """
72 hasInit = True 72 hasInit = True
73 ppath = self.packagePath 73 ppath = self.packagePath
74 74
75 if FileSystemUtilities.isRemoteFileName(self.packagePath): 75 if FileSystemUtilities.isRemoteFileName(self.packagePath):
76 self.package = ( 76 self.package = self.__remotefsInterface.splitdrive(self.packagePath)[1][
77 self.__remotefsInterface.splitdrive(self.packagePath)[1][ 77 1:
78 1: 78 ].replace(self.__remotefsInterface.separator(), ".")
79 ].replace(self.__remotefsInterface.separator(), ".")
80 )
81 while hasInit: 79 while hasInit:
82 ppath = self.__remotefsInterface.dirname(ppath) 80 ppath = self.__remotefsInterface.dirname(ppath)
83 globPattern = self.__remotefsInterface.join(ppath, "__init__.*") 81 globPattern = self.__remotefsInterface.join(ppath, "__init__.*")
84 hasInit = len(self.__remotefsInterface.glob(globPattern)) > 0 82 hasInit = len(self.__remotefsInterface.glob(globPattern)) > 0
85 else: 83 else:

eric ide

mercurial