diff --git a/pythonbrew/commands/venv.py b/pythonbrew/commands/venv.py index a45ca1d..27e61db 100644 --- a/pythonbrew/commands/venv.py +++ b/pythonbrew/commands/venv.py @@ -143,13 +143,13 @@ source '%(activate)s' logger.log("# virtualenv for %(pkgname)s (found in %(workon_home)s)" % {'pkgname': pkgname, 'workon_home': workon_home}) if os.path.isdir(workon_home): for d in sorted(os.listdir(workon_home)): - if os.path.isdir(d): + if os.path.isdir(os.path.join(workon_home, d)): logger.log(d) else: logger.log("# virtualenv for %(pkgname)s (found in %(workon_home)s)" % {'pkgname': self._pkgname, 'workon_home': self._workon_home}) if os.path.isdir(self._workon_home): for d in sorted(os.listdir(self._workon_home)): - if os.path.isdir(d): + if os.path.isdir(os.path.join(self._workon_home, d)): logger.log(d) def _write(self, src):