Commit d7bc7c40 authored by Benjamin's avatar Benjamin
Browse files

add args to xvfb command

parent 0c8ea763
...@@ -58,7 +58,7 @@ class AnimalAIEnvironment(UnityEnvironment): ...@@ -58,7 +58,7 @@ class AnimalAIEnvironment(UnityEnvironment):
self.side_channels = side_channels if side_channels else [] self.side_channels = side_channels if side_channels else []
self.arenas_parameters_side_channel = None self.arenas_parameters_side_channel = None
self.use_xvfb = True self.use_xvfb = True
self.configure_side_channels(self.side_channels) self.configure_side_channels(self.side_channels)
super().__init__( super().__init__(
...@@ -144,13 +144,12 @@ class AnimalAIEnvironment(UnityEnvironment): ...@@ -144,13 +144,12 @@ class AnimalAIEnvironment(UnityEnvironment):
) from perm ) from perm
else: else:
docker_ls = ( launch_string = f"exec xvfb-run --auto-servernum --server-args='-screen 0 640x480x24'"
f"exec xvfb-run --auto-servernum --server-args='-screen 0 640x480x24'" launch_string += f" {launch_string} {UnityEnvironment.PORT_COMMAND_LINE_ARG} {self.port}"
f" {launch_string} {UnityEnvironment.PORT_COMMAND_LINE_ARG} {self.port}" launch_string += " ".join(args)
)
self.proc1 = subprocess.Popen( self.proc1 = subprocess.Popen(
docker_ls, launch_string,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
shell=True, shell=True,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment