|
@@ -4,15 +4,15 @@ import subprocess
|
|
import json
|
|
import json
|
|
from pathlib import Path
|
|
from pathlib import Path
|
|
|
|
|
|
-# Add the utils directory to the Python path
|
|
|
|
-utils_path = Path(__file__).parent / 'utils'
|
|
|
|
|
|
+# Add the parent directory to the Python path to find utils
|
|
|
|
+utils_path = Path(__file__).parent.parent / 'utils'
|
|
sys.path.append(str(utils_path))
|
|
sys.path.append(str(utils_path))
|
|
|
|
|
|
from config_utils import load_config
|
|
from config_utils import load_config
|
|
|
|
|
|
def run_subprocess(script_name, input_dir, output_dir, indent=None, shrink=False, ignored_folders=None):
|
|
def run_subprocess(script_name, input_dir, output_dir, indent=None, shrink=False, ignored_folders=None):
|
|
"""Helper function to run a parser subprocess."""
|
|
"""Helper function to run a parser subprocess."""
|
|
- script_path = Path(__file__).parent / "parsers" / script_name
|
|
|
|
|
|
+ script_path = Path(__file__).parent.parent / "parsers" / script_name
|
|
command = [
|
|
command = [
|
|
sys.executable,
|
|
sys.executable,
|
|
str(script_path),
|
|
str(script_path),
|