UCBerkeleySETI / rawspec

6 stars 7 forks source link

Wrong plugin path is shown when HDF5_PLUGIN_PATH is in force #56

Closed texadactyl closed 2 years ago

texadactyl commented 2 years ago

Without environment variable HDF5_PLUGIN_PATH set, rawspec -v shows the correct plugin path.

rawspec 3.1.1+2@g9c3891d-dirty using librawspec 3.1.1+2@g9c3891d-dirty and cuFFT 10.2.1.245
HDF5 library version: 1.12.1
The HDF5 library plugin directory (default) is /usr/local/hdf5/lib/plugin.
The bitshuffle plugin is available.

However, when the environment variable is set, the display is the same.

Fix: Get the environment variable. If set (not NULL), use its value. Else, use the default path value as shown above.

texadactyl commented 2 years ago

Verified as working both ways.