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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user