We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 534bce4 + f7999f5 commit 4f12337Copy full SHA for 4f12337
fastapi_code_generator/__main__.py
@@ -47,7 +47,7 @@ def generate_code(
47
results: Dict[Path, str] = {}
48
code_formatter = CodeFormatter(PythonVersion.PY_38, Path().resolve())
49
for target in template_dir.rglob("*"):
50
- relative_path = target.relative_to(template_dir.absolute())
+ relative_path = target.relative_to(template_dir)
51
result = environment.get_template(str(relative_path)).render(
52
operations=parsed_object.operations,
53
imports=parsed_object.imports,
0 commit comments