Skip to content

Commit f630f5d

Browse files
template use absolute path
1 parent a5a2b25 commit f630f5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index_generator/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def app(args):
4343
if args.no_recursive:
4444
os.chdir(args.path)
4545
generate_once(args.theme, '.', os.listdir('.'), args.name, args.print, base=args.root, human=args.human,
46-
template=args.template)
46+
template=os.path.abspath(args.template))
4747
else:
4848
generate_recursively(args.theme, args.path, args.name, args.print, args.depth, base=args.root, human=args.human,
49-
template=args.template)
49+
template=os.path.abspath(args.template))
5050

5151

5252
def generate_once(theme, root, files, name, if_print, base='/', human=False, template=''):

0 commit comments

Comments
 (0)