We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1972c51 + 6315c4d commit 41e30d4Copy full SHA for 41e30d4
1 file changed
Plugin/src/SofaPython3/PythonEnvironment.cpp
@@ -238,7 +238,7 @@ void PythonEnvironment::Init()
238
char* pathVar = getenv(envVarName.c_str());
239
240
// case where only the deprecated env var is set
241
- if (pathVar != nullptr && deprecatedPathVar == nullptr)
+ if (pathVar == nullptr && deprecatedPathVar != nullptr)
242
{
243
msg_deprecated("SofaPython3") << deprecatedEnvVarName << " environment variable is deprecated, use " << envVarName << " instead.";
244
usedEnvVarName = "SOFAPYTHON_PLUGINS_PATH";
0 commit comments