plugin_path for editor plugins.
Is there (or can there be) an easy method to obtain the path to the plugin's own zip file (like self.plugin_path in the run method of a File type plugin) in an editor plugin's main.py:Tool classes? For the purpose of extracting resources. The os.path.join(config_dir, 'plugins', '{}.zip'.format(plugin_name)) method seems a little fragile.
|