Skip to content

Commit 90face7

Browse files
committed
bug fix
1 parent 4ef2954 commit 90face7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pythonbrew/commands/venv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ def run_command_list(self, options, args):
143143
logger.log("# virtualenv for %(pkgname)s (found in %(workon_home)s)" % {'pkgname': pkgname, 'workon_home': workon_home})
144144
if os.path.isdir(workon_home):
145145
for d in sorted(os.listdir(workon_home)):
146-
if os.path.isdir(d):
146+
if os.path.isdir(os.path.join(workon_home, d)):
147147
logger.log(d)
148148
else:
149149
logger.log("# virtualenv for %(pkgname)s (found in %(workon_home)s)" % {'pkgname': self._pkgname, 'workon_home': self._workon_home})
150150
if os.path.isdir(self._workon_home):
151151
for d in sorted(os.listdir(self._workon_home)):
152-
if os.path.isdir(d):
152+
if os.path.isdir(os.path.join(self._workon_home, d)):
153153
logger.log(d)
154154

155155
def _write(self, src):

0 commit comments

Comments
 (0)