diff --git a/scripts/tools/initialize_virtualenv.py b/scripts/tools/initialize_virtualenv.py index 100b53882991..f78a2dab40bc 100755 --- a/scripts/tools/initialize_virtualenv.py +++ b/scripts/tools/initialize_virtualenv.py @@ -168,7 +168,7 @@ def main(): env["AIRFLOW__DATABASE__SQL_ALCHEMY_POOL_ENABLED"] = "False" env["AIRFLOW__CORE__DAGS_FOLDER"] = f"{airflow_sources}/empty" env["AIRFLOW__CORE__PLUGINS_FOLDER"] = f"{airflow_sources}/empty" - subprocess.run(["airflow", "db", "reset", "--yes"], env=env) + subprocess.run(["uv", "run", "airflow", "db", "reset", "--yes"], env=env) print("\nResetting AIRFLOW sqlite unit test database...") env = os.environ.copy() @@ -177,7 +177,7 @@ def main(): env["AIRFLOW__DATABASE__SQL_ALCHEMY_POOL_ENABLED"] = "False" env["AIRFLOW__CORE__DAGS_FOLDER"] = f"{airflow_sources}/empty" env["AIRFLOW__CORE__PLUGINS_FOLDER"] = f"{airflow_sources}/empty" - subprocess.run(["airflow", "db", "reset", "--yes"], env=env) + subprocess.run(["uv", "run", "airflow", "db", "reset", "--yes"], env=env) print("\nInitialization of environment complete! Go ahead and develop Airflow!")