mirror of
https://github.com/logos-blockchain/logos-blockchain-module.git
synced 2026-04-08 03:33:06 +00:00
Merge pull request #17 from logos-blockchain/fix/circuitsDir
fix: circuits dir
This commit is contained in:
commit
176295e1e1
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user