api /view utiliser worker lingbot_path au lieu de hardcode
Le wrapper viser cd /home/floppyrj45/ai-video/lingbot-map quel que soit le worker. Sur .84 (user root) le path est /root/ai-video/lingbot-map, donc le cd echouait + venv absent + open3d pas importe = viser ne demarrait jamais. Utiliser worker[lingbot_path] qui est deja configure dans WORKERS.
This commit is contained in:
@@ -337,7 +337,7 @@ async def _launch_viewer(worker: dict, ply_path: str, port: int) -> None:
|
||||
f"#!/bin/bash\n"
|
||||
f"pkill -f 'viser_ply.py.*--port {port}' 2>/dev/null\n"
|
||||
f"sleep 1\n"
|
||||
f"cd /home/floppyrj45/ai-video/lingbot-map\n"
|
||||
f"cd {worker['lingbot_path']}\n"
|
||||
f"source .venv/bin/activate\n"
|
||||
f"exec python3 {VIEWER_SCRIPT_REMOTE} {ply_path!r} --port {port} --downsample 0\n"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user