roslib.packages: testing potential fix for issue seen in prerelease regression builds

This commit is contained in:
Ken Conley 2010-09-28 04:12:19 +00:00
parent a387d85ddc
commit ebbeba8207
1 changed files with 1 additions and 0 deletions

View File

@ -437,6 +437,7 @@ def list_pkgs_by_path(path, packages=None, cache=None):
path = os.path.abspath(path)
for d, dirs, files in os.walk(path, topdown=True):
if MANIFEST_FILE in files:
d = os.path.abspath(d)
package = os.path.basename(d)
if package not in packages:
packages.append(package)