From 20290ce28c513f705db1dbb6b0f719ba1846217f Mon Sep 17 00:00:00 2001 From: "Yang, Bo" Date: Sun, 25 Aug 2024 06:58:44 -0700 Subject: [PATCH] fix: Locate feature_store.yaml from __file__ (#4443) fix: locate feature_store.yaml from __file__ Signed-off-by: Yang, Bo --- .../feast/templates/postgres/feature_repo/test_workflow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/python/feast/templates/postgres/feature_repo/test_workflow.py b/sdk/python/feast/templates/postgres/feature_repo/test_workflow.py index f657aba15f..30927d3c7a 100644 --- a/sdk/python/feast/templates/postgres/feature_repo/test_workflow.py +++ b/sdk/python/feast/templates/postgres/feature_repo/test_workflow.py @@ -1,3 +1,4 @@ +import os.path import subprocess from datetime import datetime @@ -8,7 +9,7 @@ def run_demo(): - store = FeatureStore(repo_path=".") + store = FeatureStore(repo_path=os.path.dirname(__file__)) print("\n--- Run feast apply to setup feature store on Postgres ---") subprocess.run(["feast", "apply"])