Skip to content

Commit be1245e

Browse files
author
Henri Ervasti
committed
[173-support-4x2-and-2x4-modes] Fix on opening log file in correct, conf defined, path.
1 parent 1d8fa0e commit be1245e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qmi/tools/proc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ def start_local_process(context_name: str) -> int:
326326
else:
327327
output_dir = qmi.context().get_qmi_home_dir()
328328

329+
if output_dir.startswith("~"):
330+
output_dir = output_dir.replace("~", os.path.expanduser("~"))
331+
329332
# Create output log file.
330333
datetime = time.strftime("%Y%m%d_%H%M%S", time.gmtime())
331334
output_file_name = os.path.join(output_dir, context_name + "_" + datetime + ".out")

0 commit comments

Comments
 (0)