Skip to content

Commit

Permalink
general volume mount path (issue #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
gerkone committed Jan 31, 2022
1 parent d9c01a6 commit a8031e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions driver/torcs_client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ def start_container(image_name, verbose, ports, privileged):
# not yet started
# get display from environment
display = "unix" + os.environ["DISPLAY"]
torcs_config_dir = os.path.join(os.getcwd(), "torcs/configs/config")
scr_config_dir = os.path.join(os.getcwd(), "torcs/configs/drivers/scr_server/scr_server.xml")
scr_car_dir = os.path.join(os.getcwd(), "torcs/configs/drivers/scr_server/0")
base_dir = os.path.abspath(os.path.join(os.path.dirname( __file__ ), "../..", "torcs/configs"))
torcs_config_dir = os.path.join(base_dir, "config")
scr_config_dir = os.path.join(base_dir, "drivers/scr_server/scr_server.xml")
scr_car_dir = os.path.join(base_dir, "drivers/scr_server/0")
if verbose: SimpleLogger.info("Starting TORCS container...")
docker_command = []
docker_command.extend(["nvidia-docker", "run", "--ipc=host",
Expand Down

0 comments on commit a8031e8

Please sign in to comment.