2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-27 19:16:44 +00:00

Update tasks.py (#8522)

- Improvement for 'install' task
- Ensure requirements.txt is always resolved correctly
This commit is contained in:
Oliver 2024-11-20 00:01:07 +11:00 committed by GitHub
parent 70f5fe8c97
commit c5f529f64a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -286,7 +286,8 @@ def plugins(c, uv=False):
)
def install(c, uv=False, skip_plugins=False):
"""Installs required python packages."""
INSTALL_FILE = 'src/backend/requirements.txt'
# Ensure path is relative to *this* directory
INSTALL_FILE = localDir().joinpath('src/backend/requirements.txt')
info(f"Installing required python packages from '{INSTALL_FILE}'")