Commit 28752f2 1 parent 4dce254 commit 28752f2 Copy full SHA for 28752f2
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 28
28
from feast .usage import log_exceptions_and_usage
29
29
30
30
31
- def py_path_to_module (path : Path , repo_root : Path ) -> str :
31
+ def py_path_to_module (path : Path ) -> str :
32
32
return (
33
- str (path .relative_to (repo_root ))[: - len (".py" )]
33
+ str (path .relative_to (os . getcwd () ))[: - len (".py" )]
34
34
.replace ("./" , "" )
35
35
.replace ("/" , "." )
36
36
)
@@ -111,7 +111,7 @@ def parse_repo(repo_root: Path) -> RepoContents:
111
111
)
112
112
113
113
for repo_file in get_repo_files (repo_root ):
114
- module_path = py_path_to_module (repo_file , repo_root )
114
+ module_path = py_path_to_module (repo_file )
115
115
module = importlib .import_module (module_path )
116
116
for attr_name in dir (module ):
117
117
obj = getattr (module , attr_name )
You can’t perform that action at this time.
0 commit comments