Final? fix for map file with IDF4.4

This commit is contained in:
Jason2866 2021-08-09 18:34:09 +02:00 committed by GitHub
parent 18442c7e57
commit 4209f7d1cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -37,14 +37,14 @@ def bin_map_copy(source, target, env):
proj_build_dir = env["PROJECT_BUILD_DIR"]
#build_dir = env["BUILD_DIR"]
pio_env = env["PIOENV"]
src_dir = env["PROJECT_SRC_DIR"]
map_name = str(src_dir).split(os.path.sep)[2]
proj_dir = env["PROJECT_DIR"]
map_name = str(proj_dir).split(os.path.sep)[-1]
map_new_loc = proj_build_dir + os.path.sep + pio_env + os.path.sep + map_name + ".map"
#print("proj_build_dir: {}".format(proj_build_dir))
#print("pioenv: {}".format(pio_env))
#print("src_dir: {}".format(src_dir))
#print("build_dir: {}".format(build_dir))
#print("map_name: {}".format(map_name))
#print("proj_dir: {}".format(proj_dir))
#print("map_new_loc: {}".format(map_new_loc))
# move Tasmota.map to map/<variant>.map