Skip to content

Commit

Permalink
Add repo_path in sys path for CLI commands
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Delacour <matt.delacour@shopify.com>
  • Loading branch information
Matt Delacour committed Jun 1, 2021
1 parent 87989b0 commit 76bff49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/feast/repo_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def apply_total(repo_config: RepoConfig, repo_path: Path):
from colorama import Fore, Style

os.chdir(repo_path)
sys.path.append("")
registry_config = repo_config.get_registry_config()
project = repo_config.project
if not_valid_name(project):
Expand Down Expand Up @@ -267,6 +266,7 @@ def registry_dump(repo_config: RepoConfig, repo_path: Path):


def cli_check_repo(repo_path: Path):
sys.path.append(str(repo_path))
config_path = repo_path / "feature_store.yaml"
if not config_path.exists():
print(
Expand Down

0 comments on commit 76bff49

Please sign in to comment.