Skip to content

Commit 6edf195

Browse files
authored
Add repo_path in sys path for CLI commands (feast-dev#1594)
Signed-off-by: Matt Delacour <matt.delacour@shopify.com>
1 parent 87989b0 commit 6edf195

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/python/feast/repo_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ def apply_total(repo_config: RepoConfig, repo_path: Path):
112112
from colorama import Fore, Style
113113

114114
os.chdir(repo_path)
115-
sys.path.append("")
116115
registry_config = repo_config.get_registry_config()
117116
project = repo_config.project
118117
if not_valid_name(project):
@@ -267,6 +266,7 @@ def registry_dump(repo_config: RepoConfig, repo_path: Path):
267266

268267

269268
def cli_check_repo(repo_path: Path):
269+
sys.path.append(str(repo_path))
270270
config_path = repo_path / "feature_store.yaml"
271271
if not config_path.exists():
272272
print(

0 commit comments

Comments
 (0)