sarugaku/pythonfinder

PythonFinder.from_line README example doesn't work

mndavidoff opened this issue · 2 comments

The README contains this example:

>>> from pythonfinder.pythonfinder import PythonFinder
>>> PythonFinder.from_line('python3')
'/home/techalchemy/.pyenv/versions/3.6.5/python3'

That example doesn't seem to work:

>>> from pythonfinder.pythonfinder import PythonFinder
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'PythonFinder' from 'pythonfinder.pythonfinder' (/home/mdavidoff/.pyenv/versions/3.7.1/lib/python3.7/site-packages/pythonfinder/pythonfinder.py)

It looks like it is changed to Finder and from_line is not longer supported. We should update the docs.

Ah yeah I’ve been very bad about documenting this code, it was in flux for quite some time