Skip to content

Commit

Permalink
Fix model file
Browse files Browse the repository at this point in the history
  • Loading branch information
koxudaxi committed Dec 2, 2021
1 parent d97a3a2 commit 8ff4b62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fastapi_code_generator/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def main(
input_text: str = input_file.read()
if model_file:
model_path = Path(model_file).with_suffix('.py')
else:
model_path = MODEL_PATH
return generate_code(input_name, input_text, output_dir, template_dir, model_path)


Expand Down

0 comments on commit 8ff4b62

Please sign in to comment.