try using the sys.executable python
Browse files
app.py
CHANGED
|
@@ -76,7 +76,8 @@ class ReachyController:
|
|
| 76 |
if self.daemon_process is not None:
|
| 77 |
return "⚠️ Daemon already running"
|
| 78 |
|
| 79 |
-
python_cmd = "mjpython" if sys.platform == "darwin" else
|
|
|
|
| 80 |
self.daemon_process = subprocess.Popen(
|
| 81 |
[python_cmd, "-m", "reachy_mini.daemon.app.main", "--sim",
|
| 82 |
"--scene", "minimal", "--headless", "--stream-robot-view"],
|
|
|
|
| 76 |
if self.daemon_process is not None:
|
| 77 |
return "⚠️ Daemon already running"
|
| 78 |
|
| 79 |
+
python_cmd = "mjpython" if sys.platform == "darwin" else sys.executable
|
| 80 |
+
print(f"Using Python command: {python_cmd}")
|
| 81 |
self.daemon_process = subprocess.Popen(
|
| 82 |
[python_cmd, "-m", "reachy_mini.daemon.app.main", "--sim",
|
| 83 |
"--scene", "minimal", "--headless", "--stream-robot-view"],
|