File size: 884 Bytes
5aeac76 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 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!")
|