devvibes's picture
Haven Kitchen OS - Final Contest Submission πŸ†
5aeac76
import os
import reachy_mini
import sys
# 1. Find where Reachy is hiding
install_path = os.path.dirname(reachy_mini.__file__)
print(f"πŸ“ Reachy is installed at: {install_path}")
# 2. Look for the simulator file
print("πŸ”Ž Scanning for simulator files...")
possible_names = ["simulation.py", "simulator.py", "sim.py"]
found_sim = None
for root, dirs, files in os.walk(install_path):
for file in files:
if "sim" in file and file.endswith(".py"):
print(f" -> Found candidate: {file} in {root}")
if file == "simulation.py" or file == "main.py":
found_sim = os.path.join(root, file)
# 3. Try to launch it if found
if found_sim:
print(f"πŸš€ ATTEMPTING TO LAUNCH: {found_sim}")
os.system(f"{sys.executable} {found_sim}")
else:
print("❌ Could not find a clear 'simulation.py' file. Please screenshot this output!")