Skip to content

Commit 6315c4d

Browse files
committed
fix test
1 parent bb7d9fd commit 6315c4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugin/src/SofaPython3/PythonEnvironment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ void PythonEnvironment::Init()
248248
char* pathVar = getenv(envVarName.c_str());
249249

250250
// case where only the deprecated env var is set
251-
if (pathVar != nullptr && deprecatedPathVar == nullptr)
251+
if (pathVar == nullptr && deprecatedPathVar != nullptr)
252252
{
253253
msg_deprecated("SofaPython3") << deprecatedEnvVarName << " environment variable is deprecated, use " << envVarName << " instead.";
254254
usedEnvVarName = "SOFAPYTHON_PLUGINS_PATH";

0 commit comments

Comments
 (0)