Skip to content
Permalink
Browse files

Do not mark python plugins as broken in plugin installer when having …

…dash in the name

Although plugin with a dash in the name is not a correct python package name,
the qgis python support recognizes them as valid plugins - so let's have the same
behavior in the installer.
  • Loading branch information
wonder-sk committed Mar 24, 2015
1 parent 4e6ba7b commit 7bdc9c1939df297675cab815f55f16a9baa56760
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/pyplugin_installer/installer_data.py
@@ -618,9 +618,9 @@ def pluginMetadata(fct):
elif testLoad:
# only testLoad if compatible version
try:
exec "import %s" % key in globals(), locals()
exec "reload (%s)" % key in globals(), locals()
exec "%s.classFactory(iface)" % key in globals(), locals()
pkg = __import__(key)
reload(pkg)
pkg.classFactory(iface)
except Exception, e:
error = "broken"
errorDetails = unicode(e.args[0])

0 comments on commit 7bdc9c1

Please sign in to comment.
You can’t perform that action at this time.