Skip to content

Commit 355ca44

Browse files
authored
Refactor file paths to use f-strings
1 parent 838e072 commit 355ca44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/frameworks/_embed_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ def transform_to_asm(target, source, env):
134134
action=env.VerboseAction(
135135
" ".join(
136136
[
137-
str(Path(env.PioPlatform().get_package_dir("tool-cmake") or "") / "bin" / "cmake"),
137+
f'"{str(Path(env.PioPlatform().get_package_dir("tool-cmake") or "") / "bin" / "cmake")}"',
138138
"-DDATA_FILE=$SOURCE",
139139
"-DSOURCE_FILE=$TARGET",
140140
"-DFILE_TYPE=$FILE_TYPE",
141141
"-P",
142-
str(Path(env.PioPlatform().get_package_dir("framework-espidf") or "") / "tools" / "cmake" / "scripts" / "data_file_embed_asm.cmake"),
142+
f'"{str(Path(env.PioPlatform().get_package_dir("framework-espidf") or "") / "tools" / "cmake" / "scripts" / "data_file_embed_asm.cmake")}"',,
143143
]
144144
),
145145
"Generating assembly for $TARGET",

0 commit comments

Comments
 (0)