Don't respect preset circuits env vars.

This commit is contained in:
Alejandro Cabeza Romero 2026-03-02 19:44:56 +01:00
parent e400dca9bc
commit c1c6d46bf1
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD

View File

@ -40,13 +40,6 @@ namespace environment {
// - Modifies the environment variable LOGOS_BLOCKCHAIN_CIRCUITS.
// - Terminates the program if no valid circuits directory is found.
void setupCircuitsPath(const LogosAPI& logosApi) {
// If Environment Variable is set, respect it
const auto envVarPath = qEnvironmentVariable(LOGOS_BLOCKCHAIN_CIRCUITS);
if (!envVarPath.isEmpty() && isCircuitsPathValid(envVarPath)) {
qInfo() << "LOGOS_BLOCKCHAIN_CIRCUITS is already set to a valid path:" << envVarPath;
return;
}
const QString modulePath = logosApi.property("modulePath").toString();
const QDir moduleDir(modulePath);