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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user