Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit abb9615

Browse files
committed
fix: windows
1 parent 14f991a commit abb9615

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

engine/commands/model_import_cmd.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void ModelImportCmd::Exec() {
2929
auto yaml_rel_path =
3030
fmu::Subtract(fs::path(model_yaml_path), fmu::GetCortexDataPath());
3131
cortex::db::ModelEntry model_entry{model_handle_, "local", "imported",
32-
yaml_rel_path, model_handle_};
32+
yaml_rel_path.string(), model_handle_};
3333

3434
std::filesystem::create_directories(
3535
std::filesystem::path(model_yaml_path).parent_path());

engine/config/yaml_config.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include <fstream>
44
#include <iostream>
55
#include <string>
6-
using namespace std;
76

87
#include "utils/format_utils.h"
98
#include "utils/file_manager_utils.h"

engine/controllers/models.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ void Models::ImportModel(
245245
auto yaml_rel_path =
246246
fmu::Subtract(fs::path(model_yaml_path), fmu::GetCortexDataPath());
247247
cortex::db::ModelEntry model_entry{modelHandle, "local", "imported",
248-
yaml_rel_path, modelHandle};
248+
yaml_rel_path.string(), modelHandle};
249249

250250
std::filesystem::create_directories(
251251
std::filesystem::path(model_yaml_path).parent_path());

0 commit comments

Comments
 (0)