Skip to content

Commit ad7a688

Browse files
committed
Fix path construction in read() and write() functions
1 parent c9706e5 commit ad7a688

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

concoredocker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def read(port_identifier, name, initstr_val):
227227

228228
time.sleep(delay)
229229
# Construct file path consistent with other components (e.g., /in1/<name>)
230-
file_path = os.path.join(inpath + str(file_port_num), name)
230+
file_path = os.path.join(inpath, str(file_port_num), name)
231231

232232
try:
233233
with open(file_path, "r") as infile:
@@ -284,7 +284,7 @@ def write(port_identifier, name, val, delta=0):
284284

285285
try:
286286
file_port_num = int(port_identifier)
287-
file_path = os.path.join(outpath + str(file_port_num), name)
287+
file_path = os.path.join(outpath, str(file_port_num), name)
288288
except ValueError:
289289
logging.error(f"Error: Invalid port identifier '{port_identifier}' for file operation. Must be integer or ZMQ name.")
290290
return

0 commit comments

Comments
 (0)