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

Commit 4cc2166

Browse files
authored
fix: model lookup issue on Windows (#2213)
1 parent 62b74b7 commit 4cc2166

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engine/services/model_service.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,9 @@ cpp::result<StartModelResult, std::string> ModelService::StartModel(
626626
#if defined(_WIN32)
627627
json_data["model_path"] = cortex::wc::WstringToUtf8(
628628
fmu::ToAbsoluteCortexDataPath(fs::path(mc.files[0])).wstring());
629+
model_load_params["model_path"] =
630+
cortex::wc::WstringToUtf8(
631+
fmu::ToAbsoluteCortexDataPath(fs::path(mc.files[0])).wstring());
629632
#else
630633
json_data["model_path"] =
631634
fmu::ToAbsoluteCortexDataPath(fs::path(mc.files[0])).string();

0 commit comments

Comments
 (0)