Merge pull request #17 from logos-blockchain/fix/circuitsDir

fix: circuits dir
This commit is contained in:
Khushboo-dev-cpp 2026-02-24 18:29:38 +05:30 committed by GitHub
commit 176295e1e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
#include "logos_blockchain_module.h"
#include "logos_api_client.h"
#include <QByteArray>
#include <QDir>
#include <QVariant>
// Define static member
@ -72,8 +73,8 @@ int LogosBlockchainModule::start(const QString& config_path, const QString& depl
return 1;
}
// Set LOGOS_BLOCKCHAIN_CIRCUITS env variable
QString circuits_path = logosAPI->property("modulePath").toString().append(QString::fromUtf8("\\circuits"));
// Set LOGOS_BLOCKCHAIN_CIRCUITS env variable (use QDir for correct path separator on all platforms)
QString circuits_path = QDir(logosAPI->property("modulePath").toString()).filePath(QStringLiteral("circuits"));
qputenv("LOGOS_BLOCKCHAIN_CIRCUITS", circuits_path.toUtf8());
qInfo() << "LOGOS_BLOCKCHAIN_CIRCUITS set to:" << circuits_path;
QString effective_config_path = config_path;