I have a plugin system. A subclass of a subclass from a common ancestor ... the declaration is as follows:
-- SDK --- basePlugin.py -- PLUGINS --- PluginA ---- Plugin.py ---- Config.ini --- PluginB ---- Plugin.py ---- Config.ini
I need to read Config.ini information in the basePlugin.py __init__ file. CUrrently in every plugin I do:
class PluginA(BaseSync): __init__(self, path): super(PluginA,self).__init__(self, __file__)
But I wonder if it is possible to find out in the parent class which file the subclass is in ...
python inheritance plugins
mamcx
source share