mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
/opt may not exist ...
This commit is contained in:
parent
a45d199896
commit
18442b2449
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,9 @@ def _get_all_venvs(dir, level=0, maxlevel=3):
|
|||
maxlevel - the depth of the recursion
|
||||
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
|
||||
# folders, and we need recursion with a fixed depth
|
||||
result = []
|
||||
|
|
Loading…
Add table
Reference in a new issue