Skip to content

Commit d5fd4aa

Browse files
(fix) using absolute path for bind mount
1 parent 31bf735 commit d5fd4aa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

srunner/tools/results_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import datetime
1010

1111
import json
12+
from pathlib import Path
1213
from srunner.scenario_decoder.json_to_xml_files import XMLToFiles
1314
from srunner.tools.CARLA_manager import CARLAManager
1415

@@ -72,7 +73,7 @@ def _create_scenario_folder(self, iteration: str, results_folder: str):
7273

7374
# make the recordings folder
7475
os.makedirs(os.path.join(full_path, "recording"), exist_ok=True)
75-
self.recording_path = os.path.join(full_path, "recording")
76+
self.recording_path = Path(os.path.join(full_path, "recording")).resolve()
7677

7778
os.makedirs(full_path, exist_ok=True) # exist_ok=True, no need to error handle
7879
self.last_scenario = full_path

0 commit comments

Comments
 (0)