and generate the directory listing with full (relative) path

This commit is contained in:
Martin A. Brown 2016-04-01 21:10:43 -07:00
parent 832daee384
commit aef4d6e3ee
1 changed files with 2 additions and 1 deletions

View File

@ -192,7 +192,8 @@ class SourceDocument(object):
parentbase = os.path.basename(self.dirname)
logger.debug("%s found source %s", self.stem, self.filename)
if parentbase == self.stem:
self.statinfo = statfiles(self.dirname, relative=self.dirname)
parentdir = os.path.dirname(self.dirname)
self.statinfo = statfiles(self.dirname, relative=parentdir)
else:
self.statinfo = statfiles(self.filename, relative=self.dirname)