Change simulate plugin directory name to mujoco_plugin.

This helps distro packagers avoid having to create a directory with the generic `plugin` name in system locations.

Context: https://github.com/deepmind/mujoco/issues/552
PiperOrigin-RevId: 489011386
Change-Id: Ie9f1748cbb4f2b9dc8c328064caaeb50c88fdec3
This commit is contained in:
Saran Tunyasuvunakool
2022-11-16 12:39:52 -08:00
committed by Copybara-Service
parent 571b703f1c
commit 2ebc5f097b
3 changed files with 14 additions and 6 deletions
+3 -1
View File
@@ -30,6 +30,8 @@
#include "simulate.h"
#include "array_safety.h"
#define MUJOCO_PLUGIN_DIR "mujoco_plugin"
extern "C" {
#if defined(_WIN32) || defined(__CYGWIN__)
#include <windows.h>
@@ -224,7 +226,7 @@ std::vector<unique_dlhandle> scanPluginLibraries() {
return dso_handles;
}
const std::string plugin_dir = getExecutableDir() + sep + "plugin";
const std::string plugin_dir = getExecutableDir() + sep + MUJOCO_PLUGIN_DIR;
#if defined(_WIN32) || defined(__CYGWIN__)
WIN32_FIND_DATAA find_data;