Closed sphuber closed 11 months ago
All modified lines are covered by tests :white_check_mark:
Comparison is base (
8db8d94
) 65.40% compared to head (372161f
) 65.40%.:exclamation: Current head 372161f differs from pull request most recent head 6646e48. Consider uploading reports for the commit 6646e48 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Fixes #6
The
io.test_for_file
function would fail to find files that are actually present in thepdb2pqr/dat
folder if the package was installed in editable mode. The reason is that in editable mode the files are not actually copied to a path that is in thePYTHONPATH
but the source tree is simply symlinked. Since the code was only checking base directories that are the current working directory or part ofsys.path
, files were never found.There the absolute path of
pdb2pqr/dat
is determined by simply getting the filepath of thepdb2pqr.io
module and then getting thedat
folder through relative path operations. This should work for all manner of installing.