View Single Post
Old 08-03-2014, 12:48 PM   #1
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,603
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
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.
DiapDealer is online now   Reply With Quote