Re: [gedit-list] Plugin location
- From: Sébastien Wilmet <swilmet gnome org>
- To: gedit-list gnome org
- Subject: Re: [gedit-list] Plugin location
- Date: Sat, 30 Aug 2014 12:55:41 +0200
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]