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

run-single: Absolute Windows path interpreted as URI #26

Closed kyllingstad closed 4 years ago

kyllingstad commented 5 years ago

On Windows, the run-single command interprets a path/URI argument like C:\foo.fmu as an URI with scheme C rather than a filesystem path, leading to the following error:

> cse run-single C:\foo.fmu
error: No resolvers available to handle URI: C:\foo.fmu

The same issue was pointed out by @ljamt for the inspect command in PR #2 and fixed there, so it should only be a matter of applying the same fix here.