Skip to content

Commit 3eea778

Browse files
committed
Try inserting instead of replacing
1 parent de8f107 commit 3eea778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awscli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def add_alias_finder(cls, meta_path):
9494
finder_name = finder.__class__.__name__
9595
full_cls_name = f'{finder.__module__}.{finder_name}'
9696
if full_cls_name in cls._TARGET_FINDERS:
97-
meta_path[i] = cls(finder)
97+
meta_path.insert(i, cls(finder))
9898
return
9999

100100
def find_spec(self, fullname, path, target=None):

0 commit comments

Comments
 (0)