open-simulation-platform / cosim-cli

Command-line interface for libcosim
https://open-simulation-platform.github.io/cosim
Mozilla Public License 2.0
10 stars 4 forks source link

Support relative FMU paths on Windows #98

Closed kyllingstad closed 2 years ago

kyllingstad commented 2 years ago

This fixes #84, enabling users to pass relative FMU paths to inspect and run-single on Windows too. The problem was that we tried to call cosim::path_to_file_uri() even on relative paths, which doesn't make sense, since a relative path is already a relative URI reference. (On Windows we also have to replace backslashes with forward slashes for this to be true, which I've done here.)

ljamt commented 2 years ago

@kyllingstad, need to merge in master for the workflows to build successfully. Suggest to release cosim-cli after this PR has been merged.

kyllingstad commented 2 years ago

Done! Sorry for the delay.