This commit is contained in:
Gitea 2022-08-12 14:29:59 +02:00
parent b669a2104b
commit 151a45b5a4

View File

@ -340,14 +340,11 @@ def main (args):
# strip output dir.... # strip output dir....
relpath = Path(*vpath.parts[1:]) relpath = Path(*vpath.parts[1:])
v["url"] = os.path.join(indexurl, relpath) v["url"] = os.path.join(indexurl, relpath.as_posix())
if args.output: if args.output:
with open(args.output, "w") as f: with open(args.output, "w", encoding="utf-8") as f:
print (template.render(vars(args)), file=f) print (template.render(vars(args)), file=f)
else: else:
print (template.render(vars(args))) print (template.render(vars(args)))