Skip to content

Commit 76ae988

Browse files
committed
Fix generator local template path
1 parent ec8a823 commit 76ae988

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

template/{{generator_name}}.py.jinja

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""Custom fastapi-mvc {{generator_name}} generator implementation."""
2+
import os
3+
24
import click
35
from fastapi_mvc import Generator
46

@@ -20,7 +22,7 @@ Example:
2022
@click.command(
2123
cls=Generator,
2224
# Or use repository address
23-
template="./.",
25+
template=os.path.dirname(__file__),
2426
category="Custom",
2527
help=cmd_help,
2628
short_help=cmd_short_help,

0 commit comments

Comments
 (0)