I have a plugin system. The plugins subclass from a common ancestor... ad look like this:
-- SDK
--- basePlugin.py
-- PLUGINS
--- PluginA
---- Plugin.py
---- Config.ini
--- PluginB
---- Plugin.py
---- Config.ini
I need to read the info of Config.ini
in basePlugin.py __init__
. CUrrently in each plugin I do:
class PluginA(BaseSync):
__init__(self, path):
super(PluginA,self).__init__(self, __file__)
But wonder if is possible to know in the parent class in which file is located the sub-class...