mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fixed content condition
This commit is contained in:
parent
b7b4dbfcdf
commit
cdd5790808
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ def _get_all_venvs(dir,level=0,maxlevel=3):
|
|||
activatepath = os.path.join(path,"bin","activate")
|
||||
if os.path.isfile(activatepath):
|
||||
content = read_file(activatepath)
|
||||
if "VIRTUAL_ENV" and "PYTHONHOME" in content:
|
||||
if ("VIRTUAL_ENV" in content) and ("PYTHONHOME" in content):
|
||||
result.append(path)
|
||||
continue
|
||||
if level<maxlevel:
|
||||
|
|
Loading…
Add table
Reference in a new issue