ausocean / cloud

GNU General Public License v3.0
1 stars 1 forks source link

bench: Make template directory dynamic #62

Closed scruzin closed 1 month ago

scruzin commented 1 month ago

Resolving Issue #60, required changing the template directory from "t" to "cmd/oceanbench/t".

In standalone mode, however, it is normal to execute ./oceanbench from cmd/oceanbench. Therefore the latter is the working directory, which means the templates are not found.

Therefore the template directory should be dynamic.

scruzin commented 1 month ago

Note that running oceanbench from the repo level level permits the template files to be found, but moves the problem to the static files, which cannot be found.

scruzin commented 1 month ago

The check needs to be a bit more sophisticated to detect whenever we're running locally, not just in standalone mode. @trekhopton

trekhopton commented 1 month ago

resolved in PR #65