We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dce254 commit 28752f2Copy full SHA for 28752f2
sdk/python/feast/repo_operations.py
@@ -28,9 +28,9 @@
28
from feast.usage import log_exceptions_and_usage
29
30
31
-def py_path_to_module(path: Path, repo_root: Path) -> str:
+def py_path_to_module(path: Path) -> str:
32
return (
33
- str(path.relative_to(repo_root))[: -len(".py")]
+ str(path.relative_to(os.getcwd()))[: -len(".py")]
34
.replace("./", "")
35
.replace("/", ".")
36
)
@@ -111,7 +111,7 @@ def parse_repo(repo_root: Path) -> RepoContents:
111
112
113
for repo_file in get_repo_files(repo_root):
114
- module_path = py_path_to_module(repo_file, repo_root)
+ module_path = py_path_to_module(repo_file)
115
module = importlib.import_module(module_path)
116
for attr_name in dir(module):
117
obj = getattr(module, attr_name)
0 commit comments