Show More
@@ -134,17 +134,20 def pathdirs(): | |||
|
134 | 134 | def disabled(): |
|
135 | 135 | '''find disabled extensions from hgext |
|
136 | 136 | returns a dict of {name: desc}, and the max name length''' |
|
137 | ||
|
138 | import hgext | |
|
139 | extpath = os.path.dirname(os.path.abspath(hgext.__file__)) | |
|
140 | ||
|
137 | 141 | exts = {} |
|
138 | 142 | maxlength = 0 |
|
139 | for dir in filter(os.path.isdir, | |
|
140 | (os.path.join(pd, 'hgext') for pd in pathdirs())): | |
|
141 | for e in os.listdir(dir): | |
|
143 | for e in os.listdir(extpath): | |
|
144 | ||
|
142 | 145 |
|
|
143 | 146 |
|
|
144 |
|
|
|
147 | path = os.path.join(extpath, e) | |
|
145 | 148 |
|
|
146 | 149 |
|
|
147 |
|
|
|
150 | path = os.path.join(extpath, e, '__init__.py') | |
|
148 | 151 | |
|
149 | 152 |
|
|
150 | 153 |
|
@@ -168,6 +171,7 def disabled(): | |||
|
168 | 171 |
|
|
169 | 172 |
|
|
170 | 173 |
|
|
174 | ||
|
171 | 175 |
|
|
172 | 176 |
|
|
173 | 177 |
General Comments 0
You need to be logged in to leave comments.
Login now