Skip to content

Commit b93995d

Browse files
committed
builder: use join for file path
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent ecd58a6 commit b93995d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

builder/framework/arduino.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
http://arduino.cc/en/Reference/HomePage
1414
"""
1515

16-
from os.path import abspath, isdir, isfile, join, dirname, getsize
16+
from os.path import isdir, join, dirname, getsize
1717
from os import remove
18-
from shutil import copyfile
1918
from hashlib import md5
2019
import zlib
2120

@@ -50,7 +49,7 @@ def gen_bin_file(target, source, env):
5049
"6261": [0x00, 0x00, 0x2E, 0x10],
5150
}
5251

53-
temp_firm = dirname(target_firm.get_abspath()) + "/temp.bin"
52+
temp_firm = join(dirname(target_firm.get_abspath()), "temp.bin")
5453
cmd.extend(["-O", "binary"])
5554
cmd.append(target_elf.get_abspath())
5655
cmd.append(temp_firm)

builder/framework/logicromsdk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44
#
55

6-
from os.path import abspath, isdir, isfile, join, dirname, getsize
6+
from os.path import isdir, isfile, join, dirname, getsize
77
from os import remove
88
from shutil import copyfile
99
from hashlib import md5
@@ -46,7 +46,7 @@ def gen_bin_file(target, source, env):
4646
"6261": [0x00, 0x00, 0x2E, 0x10],
4747
}
4848

49-
temp_firm = dirname(target_firm.get_abspath()) + "/temp.bin"
49+
temp_firm = join(dirname(target_firm.get_abspath()), "temp.bin")
5050
cmd.extend(["-O", "binary"])
5151
cmd.append(target_elf.get_abspath())
5252
cmd.append(temp_firm)

0 commit comments

Comments
 (0)