Skip to content

Commit fcc413f

Browse files
committed
htmldocck: fix a bug in relative paths / globs
This bug only shows up when you run htmldocck in a directory other than outdir, and also use globs. Never happened before, which is why we're only seeing it now.
1 parent e7674cb commit fcc413f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/htmldocck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def get_absolute_path(self, path):
247247
paths = list(Path(self.root).glob(path))
248248
if len(paths) != 1:
249249
raise FailedCheck("glob path does not resolve to one file")
250-
path = str(paths[0])
250+
return str(paths[0])
251251
return os.path.join(self.root, path)
252252

253253
def get_file(self, path):

0 commit comments

Comments
 (0)