Skip to content

Commit 20290ce

Browse files
authored
fix: Locate feature_store.yaml from __file__ (feast-dev#4443)
fix: locate feature_store.yaml from __file__ Signed-off-by: Yang, Bo <bo.yang@protonbase.io>
1 parent 19cf222 commit 20290ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/python/feast/templates/postgres/feature_repo/test_workflow.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os.path
12
import subprocess
23
from datetime import datetime
34

@@ -8,7 +9,7 @@
89

910

1011
def run_demo():
11-
store = FeatureStore(repo_path=".")
12+
store = FeatureStore(repo_path=os.path.dirname(__file__))
1213
print("\n--- Run feast apply to setup feature store on Postgres ---")
1314
subprocess.run(["feast", "apply"])
1415

0 commit comments

Comments
 (0)