Skip to content

Handle absolute paths to options file#3142

Merged
ZedThree merged 2 commits into
nextfrom
options-path
Jul 3, 2025
Merged

Handle absolute paths to options file#3142
ZedThree merged 2 commits into
nextfrom
options-path

Conversation

@bendudson
Copy link
Copy Markdown
Contributor

The command line switch -f specifies the path to the BOUT.inp file. Previously this was always concatenated with the data directory. Now treats paths with leading '/' as absolute paths.

With C++17 this can be replaced by std::filesystem paths.

The command line switch -f specifies the path to the BOUT.inp file.
Previously this was always concatenated with the data directory.
Now treats paths with leading '/' as absolute paths.

With C++17 this can be replaced by `std::filesystem` paths.
@ZedThree
Copy link
Copy Markdown
Member

We are already on C++17, so we could switch to std::filesystem for this now :)

C++17 feature. Should enable more robust handling of system paths.
@bendudson
Copy link
Copy Markdown
Contributor Author

Thanks @ZedThree! Now using std::filesystem :)

Copy link
Copy Markdown
Member

@ZedThree ZedThree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks @bendudson!

@ZedThree ZedThree merged commit f395056 into next Jul 3, 2025
29 checks passed
@ZedThree ZedThree deleted the options-path branch July 3, 2025 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants