Skip to content

Commit

Permalink
Fix import error in sphinx autodoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinEnjalbert committed Sep 16, 2024
1 parent 2ad9483 commit a47f0cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SimRender/core/local/viewer_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
from threading import Thread
from subprocess import run
from sys import executable

from SimRender.core.remote import viewer_batch
from os.path import dirname, join


class ViewerBatch:
Expand All @@ -24,7 +23,8 @@ def start(self, nb_view: int) -> List[int]:
"""

def __launch(ports: List[int]):
run([executable, viewer_batch.__file__, ' '.join([str(port) for port in ports])])
run([executable, join(dirname(dirname(__file__)), 'remote', 'viewer_batch.py'),
' '.join([str(port) for port in ports])])

available_socket_ports = []
for _ in range(nb_view):
Expand Down

0 comments on commit a47f0cf

Please sign in to comment.