Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dd8df3b

Browse files
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 54a5450 commit dd8df3b

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)

AltStyle によって変換されたページ (->オリジナル) /