andito HF Staff commited on
Commit
b84d75e
·
1 Parent(s): a8bb6a1

try using the sys.executable python

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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 "python"
 
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"],