You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where self.virtual_env_src contains /home/brian/.virtualenvs/energy_rating/src/ and prefix contains /home/brian/.local/share/virtualenvs/energy_rating/src/django-cron
I suspect the solution might be to apply os.path.realpath() on self.virtual_env_src, which would turn it into /home/brian/.local/share/virtualenvs/energy_rating/src and the condition will pass.
The text was updated successfully, but these errors were encountered:
On my box using isort 4.3.10
This appears to get isort confused, and it can incorrectly categorize third party imports as first party.
If I redo with another virtual environment that doesn't have symlinks it shows:
Which I believe is correct.
I believe it is failing here: https://github.com/timothycrosley/isort/blob/f6ff653fbf149b67cef1e553940b788a9afa685e/isort/finders.py#L176
Where
self.virtual_env_src
contains/home/brian/.virtualenvs/energy_rating/src/
andprefix
contains/home/brian/.local/share/virtualenvs/energy_rating/src/django-cron
I suspect the solution might be to apply
os.path.realpath()
onself.virtual_env_src
, which would turn it into/home/brian/.local/share/virtualenvs/energy_rating/src
and the condition will pass.The text was updated successfully, but these errors were encountered: