Datasets:
Add debug output to show command being called
Browse filesThis will help diagnose issues with argument passing to the library.
Shows the exact command line being constructed and passed to ud-hf-parquet-tools.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
tools/04_generate_parquet.py
CHANGED
|
@@ -38,7 +38,7 @@ UD_VER = os.getenv("UD_VER", "2.17")
|
|
| 38 |
|
| 39 |
# Project paths
|
| 40 |
REPO_ROOT = Path(__file__).parent.parent.resolve()
|
| 41 |
-
METADATA_FILE = REPO_ROOT / f"metadata
|
| 42 |
UD_REPOS_DIR = REPO_ROOT / "tools" / "UD_repos"
|
| 43 |
OUTPUT_DIR = REPO_ROOT / "parquet"
|
| 44 |
|
|
@@ -79,6 +79,11 @@ def main():
|
|
| 79 |
elif args.verbose:
|
| 80 |
tool_args.append("--verbose")
|
| 81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
# Replace sys.argv and call the library's main function
|
| 83 |
original_argv = sys.argv
|
| 84 |
try:
|
|
|
|
| 38 |
|
| 39 |
# Project paths
|
| 40 |
REPO_ROOT = Path(__file__).parent.parent.resolve()
|
| 41 |
+
METADATA_FILE = REPO_ROOT / f"metadata.json"
|
| 42 |
UD_REPOS_DIR = REPO_ROOT / "tools" / "UD_repos"
|
| 43 |
OUTPUT_DIR = REPO_ROOT / "parquet"
|
| 44 |
|
|
|
|
| 79 |
elif args.verbose:
|
| 80 |
tool_args.append("--verbose")
|
| 81 |
|
| 82 |
+
# Debug: Print the command being called (can be removed later)
|
| 83 |
+
if args.verbose and not args.quiet:
|
| 84 |
+
print(f"Calling: {' '.join(tool_args)}")
|
| 85 |
+
print()
|
| 86 |
+
|
| 87 |
# Replace sys.argv and call the library's main function
|
| 88 |
original_argv = sys.argv
|
| 89 |
try:
|