From 3a3c28270e4ffe1a0e03571e08b0f6bbc06bcd3c Mon Sep 17 00:00:00 2001 From: Brad Barnett <127794626+bdbarnett@users.noreply.github.com> Date: Thu, 5 Nov 2026 03:45:54 -0600 Subject: [PATCH] stack.py: read the data file beside the script A checkout outside the sibling layout, such as a git worktree, read another checkout's data/stack.json, or none, and rendered the page from that. The script now reads the data it was committed with. --- scripts/stack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/stack.py b/scripts/stack.py index ae0bfd5..0dedd46 100755 --- a/scripts/stack.py +++ b/scripts/stack.py @@ -22,7 +22,7 @@ import tomllib BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')) -STACK_PATH = os.path.join(BASE_DIR, 'dotgithub', 'data', 'stack.json') +STACK_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'data', 'stack.json') PAGE = ('pydevices', 'docs/stack.md') START = '' END = ''