diff options
| author | Michael Howell <michael@notriddle.com> | 2025-09-02 14:23:42 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2025-09-03 09:09:18 -0700 |
| commit | fcc413f049555053b4494d8f5faca7bc5647e232 (patch) | |
| tree | c086dad36235fd1989e36cca4b835cf3b6596acb | |
| parent | e7674cb1e69d3b8a863017aa4f91a268c81c8419 (diff) | |
| download | rust-fcc413f049555053b4494d8f5faca7bc5647e232.tar.gz rust-fcc413f049555053b4494d8f5faca7bc5647e232.zip | |
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.
| -rwxr-xr-x | src/etc/htmldocck.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/htmldocck.py b/src/etc/htmldocck.py index 8d7f7341c2e..46a3a1602ac 100755 --- a/src/etc/htmldocck.py +++ b/src/etc/htmldocck.py @@ -247,7 +247,7 @@ class CachedFiles(object): paths = list(Path(self.root).glob(path)) if len(paths) != 1: raise FailedCheck("glob path does not resolve to one file") - path = str(paths[0]) + return str(paths[0]) return os.path.join(self.root, path) def get_file(self, path): |
