diff options
Diffstat (limited to 'isort')
-rw-r--r-- | isort/__init__.py | 2 | ||||
-rw-r--r-- | isort/finders.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/isort/__init__.py b/isort/__init__.py index e3af789b..342606e8 100644 --- a/isort/__init__.py +++ b/isort/__init__.py @@ -22,4 +22,4 @@ OTHER DEALINGS IN THE SOFTWARE. from . import settings # noqa: F401 from .isort import SortImports # noqa: F401 -__version__ = "4.3.10" +__version__ = "4.3.12" diff --git a/isort/finders.py b/isort/finders.py index 11f481ab..dcfaf8a6 100644 --- a/isort/finders.py +++ b/isort/finders.py @@ -128,7 +128,8 @@ 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) + if self.virtual_env: + self.virtual_env = os.path.realpath(self.virtual_env) self.virtual_env_src = '' if self.virtual_env: self.virtual_env_src = '{0}/src/'.format(self.virtual_env) |