mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Simplify the pip freeze call
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
d531f8e085
commit
bcdb36b7b2
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ def _generate_requirements():
|
|||
venvs = _get_all_venvs("/opt/") + _get_all_venvs("/var/www/")
|
||||
for venv in venvs:
|
||||
# Generate a requirements file from venv
|
||||
os.system(f"bash -c 'source {venv}/bin/activate && pip freeze > {venv}{VENV_REQUIREMENTS_SUFFIX} && deactivate'")
|
||||
os.system(f"{venv}/bin/pip freeze > {venv}{VENV_REQUIREMENTS_SUFFIX}")
|
||||
|
||||
|
||||
def _rebuild_venvs():
|
||||
|
|
Loading…
Add table
Reference in a new issue