PluginMetricsRadon.py

branch
eric7
changeset 124
196b009164dc
parent 122
bcfe13e956fb
child 126
9ecce748f0ac
--- a/PluginMetricsRadon.py	Tue Jul 09 16:53:02 2024 +0200
+++ b/PluginMetricsRadon.py	Sat Oct 26 15:31:20 2024 +0200
@@ -21,24 +21,27 @@
 from eric7.SystemUtilities import FileSystemUtilities, PythonUtilities
 
 # Start-Of-Header
-name = "Radon Metrics Plugin"
-author = "Detlev Offenbach <detlev@die-offenbachs.de>"
-autoactivate = True
-deactivateable = True
-version = "10.3.2"
-className = "RadonMetricsPlugin"
-packageName = "RadonMetrics"
-shortDescription = "Code metrics plugin using radon package"
-longDescription = (
-    """This plug-in implements dialogs to show various code metrics. These"""
-    """ are determined using the radon code metrics package. 'Raw code"""
-    """ metrics', 'Maintainability Index' and 'McCabe Complexity' can be"""
-    """ requested through different dialogs for one file or the whole"""
-    """ project."""
-)
-needsRestart = False
-hasCompiledForms = True
-pyqtApi = 2
+__header__ = {
+    "name": "Radon Metrics Plugin",
+    "author": "Detlev Offenbach <detlev@die-offenbachs.de>",
+    "autoactivate": True,
+    "deactivateable": True,
+    "version": "10.3.3",
+    "className": "RadonMetricsPlugin",
+    "packageName": "RadonMetrics",
+    "shortDescription": "Code metrics plugin using radon package",
+    "longDescription": (
+        """This plug-in implements dialogs to show various code metrics. These"""
+        """ are determined using the radon code metrics package. 'Raw code"""
+        """ metrics', 'Maintainability Index' and 'McCabe Complexity' can be"""
+        """ requested through different dialogs for one file or the whole"""
+        """ project."""
+    ),
+    "needsRestart": False,
+    "hasCompiledForms": True,
+    "hasCompiledForms": True,
+    "pyqtApi": 2,
+}
 # End-Of-Header
 
 error = ""
@@ -77,7 +80,7 @@
 
         self.backgroundService = ericApp().getObject("BackgroundService")
 
-        path = os.path.join(os.path.dirname(__file__), packageName)
+        path = os.path.join(os.path.dirname(__file__), __header__["packageName"])
 
         # raw code metrics calculation
         self.backgroundService.serviceConnect(

eric ide

mercurial