Fix import path issue in gopher scripts

Add script directory to sys.path so imports work when scripts are
called from remote_publish.sh. Also remove unused variable and
no-op regex.
This commit is contained in:
mnw
2026-01-14 16:24:42 -06:00
parent 80dfa5b585
commit b7ac21093a
2 changed files with 9 additions and 4 deletions
+4
View File
@@ -9,9 +9,13 @@ Usage:
import argparse
import re
import sys
import yaml
from pathlib import Path
# Add script directory to path for imports
sys.path.insert(0, str(Path(__file__).parent))
from ascii_art import (
HEADER_BLOG_INDEX,
DIR_TO_HEADER,