From 1fd9b47fea8b5513958cba921196f5d9d9301f1d Mon Sep 17 00:00:00 2001 From: Haroon Qureshi Date: Thu, 23 Oct 2025 08:06:22 -0700 Subject: [PATCH] Prefix assets path with "assets/". PiperOrigin-RevId: 823044312 Change-Id: I0bde4428bd1992d6d4356e107dac471fa7cdecc6 --- src/experimental/studio/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/experimental/studio/main.cc b/src/experimental/studio/main.cc index 94becc75..11c6a6a9 100644 --- a/src/experimental/studio/main.cc +++ b/src/experimental/studio/main.cc @@ -30,7 +30,8 @@ ABSL_FLAG(int, window_height, 700, "Window height"); ABSL_FLAG(std::string, model_file, "", "MuJoCo model file."); static std::vector LoadAsset(std::string_view path) { - std::ifstream file(std::string(path), std::ios::binary | std::ios::ate); + std::string fullpath = std::string("assets/") + std::string(path); + std::ifstream file(fullpath, std::ios::binary | std::ios::ate); if (!file.is_open()) { return {}; }