fix data file inclusion in source distributions

This commit is contained in:
Mike Fährmann
2019-11-09 00:00:40 +01:00
parent 6c86fbfe2a
commit ce98a86c0e
8 changed files with 19 additions and 19 deletions

View File

@@ -99,7 +99,7 @@ and https://github.com/mikf/gallery-dl/graphs/contributors
))
if not path:
path = util.path("build/man/gallery-dl.1")
path = util.path("data/man/gallery-dl.1")
with open(path, "w", encoding="utf-8") as file:
file.write(TEMPLATE.lstrip() % {
"options": "\n".join(options),
@@ -217,7 +217,7 @@ and https://github.com/mikf/gallery-dl/graphs/contributors
content.append(strip_rst(text, field != "Example"))
if not path:
path = util.path("build/man/gallery-dl.conf.5")
path = util.path("data/man/gallery-dl.conf.5")
with open(path, "w", encoding="utf-8") as file:
file.write(TEMPLATE.lstrip() % {
"options": "\n".join(content),