primer3-org / primer3

Primer3 is a command line tool to select primers for polymerase chain reaction (PCR).
GNU General Public License v2.0
219 stars 63 forks source link

PRIMER_THERMODYNAMIC_PARAMETERS_PATH does not resolve correctly without trailing slash #17

Closed sndrtj closed 5 years ago

sndrtj commented 5 years ago

Setting PRIMER_THERMODYNAMIC_PARAMETERS_PATH fails with a file not found error when the path specified does not contain a trailing slash.

E.g. an input file ending in

PRIMER_THERMODYNAMIC_PARAMETERS_PATH=/opt/primer3_config
=

Will faill, with Unable to open file /opt/primer3_configstack.ds.

On Linux, paths ending without a trailing slash are valid directory paths.

untergasser commented 5 years ago

Thank you for the bug report, it was fixed in: https://github.com/primer3-org/primer3/commit/745aba539e2312e1077ca288d787157697894940

Best, Andreas

sndrtj commented 5 years ago

Great, thanks!