Skip to content

Commit

Permalink
fix: fix all plugins being disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
pwwang committed Mar 15, 2024
1 parent 5c33ecc commit 7865f80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipen/pipen.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ def __init__(
# cyclic imports
plugin.load_entrypoints()

plugins = self.config.plugins or self._kwargs.get("plugins", [])
plugins = self._kwargs.get("plugins", None)
if plugins is None:
plugins = self.config.plugins
self.plugin_context = plugin.plugins_context(plugins)
self.plugin_context.__enter__()

Expand Down

0 comments on commit 7865f80

Please sign in to comment.