Re: [gedit-list] Plugin location



Hi No Reply,

On Sat, Aug 30, 2014 at 12:36:54PM +0200, No Reply wrote:
Is there a way for a python plugin to know the location of itself?
If I print os.getcwd() in the configuration plugin I get /home/user/ , but
the plugin is stored at ~/.local/.share/gedit/plugins/pluginname/
I want to save some settings of the plugin.

See g_get_user_config_dir(), g_get_user_data_dir() and
g_get_user_cache_dir().

--
Sébastien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]