##// END OF EJS Templates
extensions: remove now-useless pathdirs() function
Dirkjan Ochtman -
r8876:e4e22a31 default
parent child Browse files
Show More
@@ -118,19 +118,6 b' def wrapfunction(container, funcname, wr'
118 118 setattr(container, funcname, wrap)
119 119 return origfn
120 120
121 def pathdirs():
122 '''convert sys.path into a list of absolute, existing, unique paths
123 (taken from pydoc)'''
124 dirs = []
125 normdirs = []
126 for dir in sys.path:
127 dir = os.path.abspath(dir or '.')
128 normdir = os.path.normcase(dir)
129 if normdir not in normdirs and os.path.isdir(dir):
130 dirs.append(dir)
131 normdirs.append(normdir)
132 return dirs
133
134 121 def disabled():
135 122 '''find disabled extensions from hgext
136 123 returns a dict of {name: desc}, and the max name length'''
General Comments 0
You need to be logged in to leave comments. Login now