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

Root-relative FMU path interpreted incorrectly on Windows #25

Closed kyllingstad closed 4 years ago

kyllingstad commented 5 years ago

CSE CLI (or possibly CSE Core) does not handle (non-absolute) rooted paths correctly on Windows. It's easiest to explain with an example:

C:\foo\bar> cse inspect \path\to\model.fmu
error: ZIP file error: Unzipping of file: 'C:\foo\bar\\path\to\model.fmu' failed with error: No such file

Of course, a correct path resolution should have yielded C:\path\to\model.fmu.

The same problem occurs with run-single, but not with run.