Commit d7bc7c40 authored by Benjamin's avatar Benjamin
Browse files

add args to xvfb command

parent 0c8ea763
...@@ -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