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 |