We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently the working directory must be equal to location of proxyfmu.exe. Running libcosim should know where to find proxyfmu.
Works: C:\osp\cosim\bin> .\cosim.exe run C:\path\to\config\
C:\osp\cosim\bin> .\cosim.exe run C:\path\to\config\
Fails: C:\osp\cosim> .\bin\cosim.exe run C:\path\to\config\
C:\osp\cosim> .\bin\cosim.exe run C:\path\to\config\
The text was updated successfully, but these errors were encountered:
Possible solution: https://www.boost.org/doc/libs/1_77_0/doc/html/boost/dll/program_location.html
Sorry, something went wrong.
if (!proxyfmu::filesystem::exists(executable)) { boost::dll::fs::error_code ec; boost::dll::fs::path loc = boost::dll::program_location(ec); if (!ec.failed()) { executable = loc.parent_path().string() / executable; } }
Should work.
Successfully merging a pull request may close this issue.
Currently the working directory must be equal to location of proxyfmu.exe. Running libcosim should know where to find proxyfmu.
Works:
C:\osp\cosim\bin> .\cosim.exe run C:\path\to\config\
Fails:
C:\osp\cosim> .\bin\cosim.exe run C:\path\to\config\
The text was updated successfully, but these errors were encountered: