##// END OF EJS Templates
normalize path using os.sep
marcink -
r1836:445861e1 beta
parent child Browse files
Show More
@@ -152,12 +152,12 b' def get_repos(path, recursive=False):'
152 """
152 """
153 Scans given path for repos and return (name,(type,path)) tuple
153 Scans given path for repos and return (name,(type,path)) tuple
154
154
155 :param path: path to scann for repositories
155 :param path: path to scan for repositories
156 :param recursive: recursive search and return names with subdirs in front
156 :param recursive: recursive search and return names with subdirs in front
157 """
157 """
158
158
159 # remove ending slash for better results
159 # remove ending slash for better results
160 path = path.rstrip('/')
160 path = path.rstrip(os.sep)
161
161
162 def _get_repos(p):
162 def _get_repos(p):
163 if not os.access(p, os.W_OK):
163 if not os.access(p, os.W_OK):
General Comments 0
You need to be logged in to leave comments. Login now