Skip to content

Commit

Permalink
Update flytekit/core/tracker.py
Browse files Browse the repository at this point in the history
Co-authored-by: Yee Hing Tong <wild-endeavor@users.noreply.github.com>
  • Loading branch information
pingsutw and wild-endeavor authored Sep 25, 2024
1 parent 0c2e60e commit 5e4076d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flytekit/core/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ def _resolve_abs_module_name(self, path: str, package_root: typing.Optional[str]
# Let us remove any extensions like .py
basename = os.path.splitext(basename)[0]

# This is an escape hatch for the zipimporter (used by spark). As this function is called recursively,
# it'll eventually reach the zip file, which is not extracted, so we should return.
if not Path(dirname).is_dir():
return basename

Expand Down

0 comments on commit 5e4076d

Please sign in to comment.