Skip to content

Commit

Permalink
Merge from 3.x: PR #5128
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Sep 4, 2017
2 parents 7509a86 + e84c126 commit 061ca3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spyder/otherplugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@ def _get_spyderplugins(plugin_path, is_io, modnames, modlist):
# Is this a Spyder plugin?
if not name.startswith(PLUGIN_PREFIX):
continue

# Ensure right type of plugin
if is_io != name.startswith(IO_PREFIX):
continue

# Skip names that end in certain suffixes
forbidden_suffixes = ['dist-info', 'egg.info', 'egg-link']
if any([name.endswith(s) for s in forbidden_suffixes]):
continue

# Import the plugin
_import_plugin(name, plugin_path, modnames, modlist)

Expand Down

0 comments on commit 061ca3c

Please sign in to comment.