diff --git a/Plugin/src/SofaPython3/PythonEnvironment.cpp b/Plugin/src/SofaPython3/PythonEnvironment.cpp index d347e737..b9a673a1 100644 --- a/Plugin/src/SofaPython3/PythonEnvironment.cpp +++ b/Plugin/src/SofaPython3/PythonEnvironment.cpp @@ -289,7 +289,7 @@ void PythonEnvironment::Init() for( const auto& elem : map) { Plugin p = elem.second; - if ( p.getModuleName() == sofa_tostring(SOFA_TARGET) ) + if ( strcmp( p.getModuleName(), sofa_tostring(SOFA_TARGET)) == 0 ) { pluginLibraryPath = elem.first; } diff --git a/Plugin/src/SofaPython3/PythonEnvironment.h b/Plugin/src/SofaPython3/PythonEnvironment.h index 29a4be9e..758a4d6a 100644 --- a/Plugin/src/SofaPython3/PythonEnvironment.h +++ b/Plugin/src/SofaPython3/PythonEnvironment.h @@ -120,7 +120,7 @@ class SOFAPYTHON3_API PythonEnvironment struct SceneLoaderListerner : public SceneLoader::Listener { /// possibly unload python modules to force importing their eventual modifications - virtual void rightBeforeLoadingScene(); + virtual void rightBeforeLoadingScene() override; static SceneLoaderListerner* getInstance() { static SceneLoaderListerner sceneLoaderListerner; return &sceneLoaderListerner; }