Skip to content

Commit

Permalink
Merge pull request #5 from kdunee/fix-in-convert-questions-batch
Browse files Browse the repository at this point in the history
fix calling convert_questions.py from convert_questions_batch.py
  • Loading branch information
kdunee authored Oct 12, 2024
2 parents ae3470a + 50fce14 commit b8e10eb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/quizgen/scripts/convert_questions_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ def convert_questions(input_dir, output_dir):
print(f"Processing file: {relative_path}")
script_path = os.path.join(os.path.dirname(__file__), "convert_questions.py")
subprocess.run(
[sys.executable, script_path, str(json_file), str(output_path)],
[
sys.executable,
script_path,
"--input-path",
str(json_file),
"--output-path",
str(output_path),
],
check=True,
)
print(f"Finished processing file: {relative_path}")
Expand Down

0 comments on commit b8e10eb

Please sign in to comment.