Skip to content
Permalink
Browse files

Merge pull request #7747 from cjmayo/check_init_py

Mark a Python plugin without an __init__.py as broken
  • Loading branch information
luipir committed Aug 30, 2018
2 parents d683550 + 051e4d1 commit a092823eabd8ccfbf5ad5614a082a7d98074f244
Showing with 4 additions and 0 deletions.
  1. +4 −0 python/pyplugin_installer/installer_data.py
@@ -600,6 +600,10 @@ def pluginMetadata(fct):
errorDetails = ""
version = None

if not os.path.exists(os.path.join(path, '__init__.py')):
error = "broken"
errorDetails = QCoreApplication.translate("QgsPluginInstaller", "Missing __init__.py")

metadataFile = os.path.join(path, 'metadata.txt')
if os.path.exists(metadataFile):
version = normalizeVersion(pluginMetadata("version"))

0 comments on commit a092823

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