[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

@@ -1,5 +1,6 @@
import serial.tools.list_ports as list_ports
# Returns a valid port or None, if it cannot be found
def resolve_port(logger, portname: str = "auto"):
if portname != "auto":

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):