Skip to content

Commit

Permalink
Merge pull request #1038 from MetPX/prefer_local_plugins_over_builtins
Browse files Browse the repository at this point in the history
locally installed plugins are not selected because we prepend system …
  • Loading branch information
petersilva authored May 6, 2024
2 parents 916b0f3 + e4973a8 commit 90b03e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sarracenia/flowcb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ def load_library(factory_path, options):
packagename, classname = factory_path.rsplit('.', 1)

try:
module = importlib.import_module('sarracenia.flowcb.' + packagename)
module = importlib.import_module(packagename)
class_ = getattr(module, classname)
except ModuleNotFoundError:
module = importlib.import_module(packagename)
module = importlib.import_module('sarracenia.flowcb.' + packagename)
class_ = getattr(module, classname)

if hasattr(options, 'settings'):
Expand Down

0 comments on commit 90b03e2

Please sign in to comment.