mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Clarification regarding the use of os functions instead of glob
This commit is contained in:
parent
1ce13d631d
commit
a440afe8eb
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ VENV_REQUIREMENTS_SUFFIX = "_req.txt"
|
|||
VENV_IGNORE = "VENVNOREGEN"
|
||||
|
||||
def _get_all_venvs(dir,level=0,maxlevel=2):
|
||||
# Using os functions instead of glob, because glob doesn't support hidden folders, and we need recursion with a fixed depth
|
||||
result = []
|
||||
for file in os.listdir(dir):
|
||||
path = os.path.join(dir,file)
|
||||
|
|
Loading…
Add table
Reference in a new issue