1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00

[FL-3098] Up toolchain to version 20 (#2397)

* Up toolchain to 20
* Python reformat, add version info into fbtenv

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Max Andreev
2023-02-15 19:56:25 +03:00
committed by GitHub
parent 25e8947282
commit 2fdebb639b
5 changed files with 17 additions and 4 deletions

View File

@@ -173,12 +173,14 @@ class Templite:
"""Renders the template according to the given namespace."""
stack = []
namespace["__file__"] = self.file
# add write method
def write(*args):
for value in args:
stack.append(str(value))
namespace["write"] = write
# add include method
def include(file):
if not os.path.isabs(file):