1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-12 12:51:22 +04:00

fbt: Fix building using path with space (#2948)

* fbt: Fix building on Windows using path with space
* scripts: Fixed formatting

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: hedger <hedger@nanode.su>
This commit is contained in:
Alexandre L
2023-08-09 02:46:07 +02:00
committed by GitHub
parent 98d4309b61
commit d9e931b7b7
2 changed files with 7 additions and 5 deletions

View File

@@ -59,7 +59,9 @@ def extract_abs_dir_path(node):
if abs_dir_node is None:
raise StopError(f"Can't find absolute path for {node.name}")
return abs_dir_node.abspath
# Don't return abspath attribute (type is str), it will break in
# OverrideEnvironment.subst_list() by splitting path on spaces
return abs_dir_node
def path_as_posix(path):