Skip to content

Adding files to the search path #203

Answered by tkittel
marquezj asked this question in Q&A
Discussion options

You must be logged in to vote

The short answer is that you simply add the directory to the NCRYSTAL_DATA_PATH environment variable. This variable works like any PATH-like environment variable, so multiple directories can be separated by colons (:).

The NCRYSTAL_DATADIR variable should not be used for such user data - it exists solely as a rarely needed workaround for weird installations that don't know their standard library location (or for when running unit tests out of the CMake build area and the standard library is not embedded). It might be good to rename this variable at some point, to make the usage more clear.

The reason paths added via NC.addCustomSearchDirectory() does not propagate to the openmc run, is th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marquezj
Comment options

marquezj Nov 11, 2024
Collaborator Author

Answer selected by tkittel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment