Closed emanuele closed 7 years ago
Hi, I see Travis CI failed. As far as I understand the problem is unrelated to my patch.
H! Thanks for this, will check it later today
@emanuele I fixed the travis error. Had to do with their change of pyenv version. Could you try to rebase and check if it still fails?
Done. Unfortunately, AppVeyor build failed again. But it seems unrelated to my patch.
@emanuele yes it's unrelated! Merged! Thanks!
When installing tract_querier in non-system folders, e.g. with
python setup.py install --user
, tract_querier is unable to find the queries and triggersException: Default path for queries not found
and immediately stop working. The issue is infind_queries_path()
, wheresysconfig.get_path()
uses only the default scheme, see: https://docs.python.org/3/library/sysconfig.html#installation-paths. This patch fixes the issue by looping through all schemes supported by Python. See issue #39.