eric6/Graphics/ImportsDiagramBuilder.py

changeset 8257
28146736bbfc
parent 8234
fcb6b4b96274
child 8270
6ba3564b7161
equal deleted inserted replaced
8256:26a8b92aeabd 8257:28146736bbfc
59 hasInit = len(glob.glob(os.path.join(ppath, '__init__.*'))) > 0 59 hasInit = len(glob.glob(os.path.join(ppath, '__init__.*'))) > 0
60 self.shortPackage = self.packagePath.replace(ppath, '').replace( 60 self.shortPackage = self.packagePath.replace(ppath, '').replace(
61 os.sep, '.')[1:] 61 os.sep, '.')[1:]
62 62
63 pname = self.project.getProjectName() 63 pname = self.project.getProjectName()
64 if pname: 64 name = (
65 name = self.tr("Imports Diagramm {0}: {1}").format( 65 self.tr("Imports Diagramm {0}: {1}").format(
66 pname, self.project.getRelativePath(self.packagePath)) 66 pname, self.project.getRelativePath(self.packagePath))
67 else: 67 if pname else
68 name = self.tr("Imports Diagramm: {0}").format( 68 self.tr("Imports Diagramm: {0}").format(self.packagePath)
69 self.packagePath) 69 )
70 self.umlView.setDiagramName(name) 70 self.umlView.setDiagramName(name)
71 71
72 def __buildModulesDict(self): 72 def __buildModulesDict(self):
73 """ 73 """
74 Private method to build a dictionary of modules contained in the 74 Private method to build a dictionary of modules contained in the

eric ide

mercurial