/opt may not exist ...

This commit is contained in:
Alexandre Aubin 2022-08-11 15:59:48 +02:00
parent a45d199896
commit 18442b2449

View file

@ -30,6 +30,9 @@ def _get_all_venvs(dir, level=0, maxlevel=3):
maxlevel - the depth of the recursion maxlevel - the depth of the recursion
level - do not edit this, used as an iterator level - do not edit this, used as an iterator
""" """
if not os.path.exists(dir):
return []
# Using os functions instead of glob, because glob doesn't support hidden # Using os functions instead of glob, because glob doesn't support hidden
# folders, and we need recursion with a fixed depth # folders, and we need recursion with a fixed depth
result = [] result = []