Skip to content

Commit 3f102dd

Browse files
fix generate no recursive
1 parent d912101 commit 3f102dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index_generator/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ 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=os.path.abspath(args.template))
46+
template=os.path.abspath(args.template) if args.template else '')
4747
else:
4848
generate_recursively(args.theme, args.path, args.name, args.print, args.depth, base=args.root, human=args.human,
4949
template=os.path.abspath(args.template))

0 commit comments

Comments
 (0)