Fixed an issue with resolving various files as templates in source installs
Missing _data prefix
This commit is contained in:
parent
c44920c0f7
commit
04bb262187
1 changed files with 1 additions and 1 deletions
|
|
@ -651,7 +651,7 @@ class Server():
|
|||
if octoprint.util.is_running_from_source():
|
||||
root = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../.."))
|
||||
allowed = ["AUTHORS.md", "CHANGELOG.md", "THIRDPARTYLICENSES.md"]
|
||||
files = {name: os.path.join(root, name) for name in allowed}
|
||||
files = {"_data/" + name: os.path.join(root, name) for name in allowed}
|
||||
loaders.append(octoprint.util.jinja.SelectedFilesLoader(files))
|
||||
|
||||
jinja_loader = jinja2.ChoiceLoader(loaders)
|
||||
|
|
|
|||
Loading…
Reference in a new issue