Skip to content

Commit

Permalink
Merge pull request #4521 from dalthviz/fixes_issue_4487
Browse files Browse the repository at this point in the history
PR: Register spyder_io plugins correctly
  • Loading branch information
ccordoba12 authored Jun 24, 2017
2 parents 836c11a + a4ef4f4 commit 045a60e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spyder/otherplugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,13 @@ def _get_spyderplugins(plugin_path, is_io, modnames, modlist):
return

for name in os.listdir(plugin_path):
if is_io and not name.startswith(IO_PREFIX):
# This is needed in order to register the spyder_io_hdf5 plugin.
# See issue 4487
# Is this a Spyder plugin?
if not name.startswith(PLUGIN_PREFIX):
continue
if not name.startswith(PLUGIN_PREFIX) or name.startswith(IO_PREFIX):
# Ensure right type of plugin
if is_io != name.startswith(IO_PREFIX):
continue

# Import the plugin
Expand Down

0 comments on commit 045a60e

Please sign in to comment.