make env view loading unconditional (#12719)

This commit is contained in:
Greg Becker 2019-09-05 18:15:36 -07:00 committed by GitHub
parent 34647913be
commit 3f1c78128e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -955,10 +955,8 @@ def _shell_vars(self):
path_updates = list()
if default_view_name in self.views:
for var, subdirs in updates:
paths = filter(lambda x: os.path.exists(x),
list(os.path.join(self.default_view.root, x)
for x in subdirs))
for var, dirs in updates:
paths = [os.path.join(self.default_view.root, x) for x in dirs]
path_updates.append((var, paths))
return path_updates