Skip to content

Commit

Permalink
main plugin ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
toluaina committed Aug 14, 2024
1 parent 4fdd6a1 commit 7cdd542
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pgsync/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ def reload(self) -> None:
if "test" not in sys.argv[0]:
self.walk(self.package)

# main plugin ordering
self.plugins = sorted(
self.plugins, key=lambda x: self.names.index(x.name)
)

def walk(self, package: str) -> None:
"""Recursively walk the supplied package and fetch all plugins."""
module = import_module(package)
Expand Down

0 comments on commit 7cdd542

Please sign in to comment.