Skip to content

Commit 7378c26

Browse files
authored
Merge pull request #87 from OpenSEMBA/fixes-issue-with-results-paths
Fixes issue in results path
2 parents 66b5707 + 7263f04 commit 7378c26

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Launcher.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ Launcher::Launcher(const std::string& inputFile, const std::string& exportFolder
6363
void Launcher::run()
6464
{
6565
std::cout << "Loading input file: " << inputFile_ << std::endl;
66-
const std::string outputPrefix = extractCaseName(inputFile_) + ".";
67-
const std::string driverExportFolder = ensureTrailingSlash(exportFolder_) + outputPrefix;
66+
const std::string caseNamePrefix = extractCaseName(inputFile_) + ".";
67+
const std::string outputPathPrefix = ensureTrailingSlash(exportFolder_) + caseNamePrefix;
6868

6969
if (isAdaptedJson(inputFile_)) {
7070
auto driver = Driver::loadFromAdaptedFile(inputFile_);
71-
driver.setExportFolder(driverExportFolder);
71+
driver.setExportFolder(outputPathPrefix);
7272
std::cout << "Running Tulip analysis..." << std::endl;
7373
driver.run();
7474
}
@@ -82,7 +82,7 @@ void Launcher::run()
8282
Adapter adapter(inputFile_);
8383
AdaptedInputParser parser(inputFile_, adapter.getAdaptedInputJSON());
8484
Driver driver(parser.readModel(), parser.readDriverOptions());
85-
driver.setExportFolder(driverExportFolder);
85+
driver.setExportFolder(outputPathPrefix);
8686
std::cout << "Running Tulip analysis..." << std::endl;
8787
driver.run();
8888
}

0 commit comments

Comments
 (0)