Skip to content

Commit 07ddd0f

Browse files
authored
Merge pull request #2074 from oesteban/fix/Plugin-absolute-import
[REF] Change dynamic loading of plugin to rely on relative import
2 parents 2744d4c + f1c929d commit 07ddd0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/engine/workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ def run(self, plugin=None, plugin_args=None, updatehash=False):
557557
if not isinstance(plugin, (str, bytes)):
558558
runner = plugin
559559
else:
560-
name = 'nipype.pipeline.plugins'
560+
name = '.'.join(__name__.split('.')[:-2] + ['plugins'])
561561
try:
562562
__import__(name)
563563
except ImportError:

0 commit comments

Comments
 (0)