Project/ProjectBrowserModel.py

changeset 103
59137afca666
parent 97
c4086afea02b
child 169
a03768260179
equal deleted inserted replaced
102:85fc2a5cddb4 103:59137afca666
120 self._dirName = path 120 self._dirName = path
121 if not os.path.isdir(self._dirName): 121 if not os.path.isdir(self._dirName):
122 self._dirName = os.path.dirname(self._dirName) 122 self._dirName = os.path.dirname(self._dirName)
123 123
124 self.type_ = ProjectBrowserItemSimpleDirectory 124 self.type_ = ProjectBrowserItemSimpleDirectory
125 self.icon = UI.PixmapCache.getIcon("dirClosed.png") 125 if os.path.lexists(self._dirName) and os.path.islink(self._dirName):
126 self.symlink = True
127 self.icon = UI.PixmapCache.getSymlinkIcon("dirClosed.png")
128 else:
129 self.icon = UI.PixmapCache.getIcon("dirClosed.png")
126 130
127 def dirName(self): 131 def dirName(self):
128 """ 132 """
129 Public method returning the directory name. 133 Public method returning the directory name.
130 134

eric ide

mercurial