01-11-2019, 11:35 AM
Hello,
I'm using Python-fu to write a plugin. Is there any way to get the path of the plug-ins folder?
I'm using Python-fu to write a plugin. Is there any way to get the path of the plug-ins folder?
Python-fu path of the plug-ins folder
|
01-11-2019, 11:35 AM
Hello,
I'm using Python-fu to write a plugin. Is there any way to get the path of the plug-ins folder?
01-11-2019, 12:13 PM
There isn't one single folder, there are "folders", so nothing says that the folder you are looking at is the right one (I use three additional folders besides the standard two, and furthermore they mostly contain soft links to script elsewhere.
If you want to know where your plugin is, use os.path.abspath(sys.argv[0]) (this is the full path to your plugin file..). Code: #!/usr/bin/env python
01-11-2019, 05:31 PM
If you want to get the list of folders that are set in preferences:
Code: pdb.gimp_gimprc_query("plug-in-path")
01-16-2019, 09:40 PM
Thank you Kevin and Ofnuts for you replies. Very helpful!
|
« Next Oldest | Next Newest »
|