Skip to content

Commit

Permalink
change adding working_dir to dynamic_dest_dir
Browse files Browse the repository at this point in the history
Signed-off-by: Nelson Chen <[email protected]>
  • Loading branch information
arbaobao committed Aug 18, 2024
1 parent 8902707 commit 659515c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flytekit/bin/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,8 @@ def _execute_task(
) as ctx:
import sys

working_dir = os.getcwd()
if all(os.path.realpath(path) != working_dir for path in sys.path):
sys.path.append(working_dir)
if all(os.path.realpath(path) != dynamic_dest_dir for path in sys.path):
sys.path.append(dynamic_dest_dir)
resolver_obj = load_object_from_module(resolver)
# Use the resolver to load the actual task object
_task_def = resolver_obj.load_task(loader_args=resolver_args)
Expand Down

0 comments on commit 659515c

Please sign in to comment.