diff options
author | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2019-03-04 20:26:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-04 20:26:29 -0800 |
commit | d0d47906fab9b1d01f972d94b7215db367b7fa53 (patch) | |
tree | 229aa38b3e3905867271b044f403236cb8a235d5 | |
parent | 1ec68ab8deab283f17bf7a39f011d18f02ad452a (diff) | |
parent | 7834801b86908974c4acfb81e76b450b268b6551 (diff) | |
download | isort-d0d47906fab9b1d01f972d94b7215db367b7fa53.tar.gz |
Merge pull request #877 from brianmay/fix_symlink_virtualenv
Lookup real path of virtualenv
-rw-r--r-- | isort/finders.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/isort/finders.py b/isort/finders.py index c419bec8..6a1c3d5a 100644 --- a/isort/finders.py +++ b/isort/finders.py @@ -140,6 +140,7 @@ class PathFinder(BaseFinder): # virtual env self.virtual_env = self.config.get('virtual_env') or os.environ.get('VIRTUAL_ENV') + self.virtual_env = os.path.realpath(self.virtual_env) self.virtual_env_src = False if self.virtual_env: self.virtual_env_src = '{0}/src/'.format(self.virtual_env) |