]> kaliko git repositories - mpd-sima.git/blobdiff - sima/lib/plugin.py
Use client2client to detect other instance
[mpd-sima.git] / sima / lib / plugin.py
index 1188d4595e2190c47d8e6fbde7823926f49d852e..755aadf93efbfd514c39daad003bd5b71cb23f16 100644 (file)
@@ -26,8 +26,8 @@ class Plugin:
     First non-empty line of the docstring is used as description
     Rest of the docstring at your convenience.
 
-    The plugin Name MUST be the same as the module (file name), case
-    insensitive: for instance plugin.py → Plugin
+    The lowercased plugin Name MUST be the same as the module (file name),
+    for instance Plugin → plugin.py
     It eases plugins discovery and simplifies the code to handle them,
     IMHO, it's a fair trade-off.
     """
@@ -58,7 +58,7 @@ class Plugin:
         """
         conf = self.__daemon.config
         for sec in conf.sections():
-            if sec.lower() == self.__class__.__name__.lower():
+            if sec == self.__class__.__name__.lower():
                 self.plugin_conf = conf[sec]
         #if self.plugin_conf:
         #    self.log.debug('Got config for {0}: {1}'.format(self,