Skip to content
Snippets Groups Projects
Commit 9ac132e3 authored by Francois Henrotte's avatar Francois Henrotte
Browse files

bug fixed: model opened via GUI

parent 5cb203cb
No related branches found
No related tags found
No related merge requests found
...@@ -653,8 +653,9 @@ bool remoteClient::syncOutputFile(const std::string &wdir, const std::string &fi ...@@ -653,8 +653,9 @@ bool remoteClient::syncOutputFile(const std::string &wdir, const std::string &fi
void MetaModel::construct() void MetaModel::construct()
{ {
OLMsg::Info("Metamodel now CONSTRUCTING"); OLMsg::Info("Metamodel now CONSTRUCTING");
std::string fileName = getWorkingDir() + genericNameFromArgs + onelabExtension;
openOnelabBlock(); openOnelabBlock();
parse_onefile( genericNameFromArgs + onelabExtension); parse_onefile(fileName);
closeOnelabBlock(); closeOnelabBlock();
saveCommandLines(); saveCommandLines();
//onelab::server::instance()->setChanged(true, getName()); //onelab::server::instance()->setChanged(true, getName());
...@@ -662,7 +663,7 @@ void MetaModel::construct() ...@@ -662,7 +663,7 @@ void MetaModel::construct()
void MetaModel::analyze() { void MetaModel::analyze() {
OLMsg::Info("Metamodel now ANALYZING"); OLMsg::Info("Metamodel now ANALYZING");
std::string fileName = genericNameFromArgs + onelabExtension; std::string fileName = getWorkingDir() + genericNameFromArgs + onelabExtension;
openOnelabBlock(); openOnelabBlock();
OLMsg::Info("Parse file <%s> %s", fileName.c_str(), OLMsg::Info("Parse file <%s> %s", fileName.c_str(),
parse_onefile(fileName)?"done":"failed"); parse_onefile(fileName)?"done":"failed");
...@@ -671,7 +672,7 @@ void MetaModel::analyze() { ...@@ -671,7 +672,7 @@ void MetaModel::analyze() {
void MetaModel::compute() { void MetaModel::compute() {
OLMsg::Info("Metamodel now COMPUTING"); OLMsg::Info("Metamodel now COMPUTING");
std::string fileName = genericNameFromArgs + onelabExtension; std::string fileName = getWorkingDir() + genericNameFromArgs + onelabExtension;
openOnelabBlock(); openOnelabBlock();
OLMsg::Info("Parse file <%s> %s", fileName.c_str(), OLMsg::Info("Parse file <%s> %s", fileName.c_str(),
parse_onefile(fileName)?"done":"failed"); parse_onefile(fileName)?"done":"failed");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment