Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <pingsutw@apache.org>
  • Loading branch information
pingsutw committed Apr 14, 2023
1 parent 42c0f2c commit 176bd37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flytekit/tools/script_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def hash_file(file_path: typing.Union[os.PathLike, str]) -> (bytes, str):
return h.digest(), h.hexdigest()


def _find_project_root(source_path) -> Path:
def _find_project_root(source_path) -> str:
"""
Find the root of the project.
The root of the project is considered to be the first ancestor from source_path that does
Expand All @@ -149,4 +149,4 @@ def _find_project_root(source_path) -> Path:
path = Path(source_path).parent.resolve()
while os.path.exists(os.path.join(path, "__init__.py")):
path = path.parent
return path
return str(path)

0 comments on commit 176bd37

Please sign in to comment.