Skip to content

Commit 55eca68

Browse files
committed
fix py script
1 parent 39c1de2 commit 55eca68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/platformio-build-esp32.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py
2626

27-
from os.path import abspath, isdir, isfile, join
27+
from os.path import abspath, isdir, isfile, join, basename
2828

2929
from SCons.Script import DefaultEnvironment
3030

@@ -100,7 +100,7 @@
100100
"-u", "newlib_include_syscalls_impl",
101101
"-u", "newlib_include_pthread_impl",
102102
"-u", "__cxa_guard_dummy",
103-
"-Wl,-Map=" + os.path.join("$BUILD_DIR", os.path.basename(env.subst("${PROJECT_DIR}.map")))
103+
"-Wl,-Map=" + join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
104104
],
105105

106106
CPPPATH=[

tools/platformio-build-esp32s2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py
2626

27-
from os.path import abspath, isdir, isfile, join
27+
from os.path import abspath, isdir, isfile, join, basename
2828

2929
from SCons.Script import DefaultEnvironment
3030

@@ -95,7 +95,7 @@
9595
"-u", "newlib_include_syscalls_impl",
9696
"-u", "newlib_include_pthread_impl",
9797
"-u", "__cxa_guard_dummy",
98-
"-Wl,-Map=" + os.path.join("$BUILD_DIR", os.path.basename(env.subst("${PROJECT_DIR}.map")))
98+
"-Wl,-Map=" + join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
9999
],
100100

101101
CPPPATH=[

0 commit comments

Comments
 (0)