Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 7bdc9c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/pyplugin_installer/installer_data.py
Expand Up @@ -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])
Expand Down

0 comments on commit 7bdc9c1

Please sign in to comment.