--- On Fri, 10/10/08, Chris Mohler <cr33dog@xxxxxxxxx> wrote: > From: Chris Mohler <cr33dog@xxxxxxxxx> > Subject: Re: A question about python gimpfu - "home folder" > To: paultaney@xxxxxxxxx > Cc: "gimp" <Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx> > Date: Friday, October 10, 2008, 12:08 PM > On Fri, Oct 10, 2008 at 10:11 AM, paul taney > <paultaney@xxxxxxxxx> wrote: > > Hi, > > > >> >> Is there a method to discover the GIMP > version > >> and/or ~/.gimp folder > >> >> that works across platform (from python)? > >> gimp.directory > > > > > > On a Mac running gimp2.4.5 > > > > print "gimp.directory = %s" % > gimp.directory > > prints > > gimp.directory = > /Users/paultaney/Library/Application Support/Gimp > > > > ...but my plugin fails to run from there. It does not > appear in the menus. > > > > Nor will it run from ~/.gimp-2.4/plug-ins or > ~/.gimp-2.4/scripts > > > > I have only managed to make it run from one location: > > > > % cat push.sh > > cp stroke_to_vector.py > /Applications/Gimp.app//Contents/Resources/lib/gimp/2.0/plug-ins/ > > chmod +x > /Applications/Gimp.app//Contents/Resources/lib/gimp/2.0/plug-ins/stroke_to_vector.py > > That's interesting. if you create a custom palette on > a Mac, does it > end up in ~/.gimp or > /Applications/Gimp.app//Contents/<somewhere> ? > Not knowing what file to look for I cant be sure, but I did create a new tmp file and then ran Gimp and "custom pallette". % find ~ -newer tmp ...didnt get any hits in the ~/.gimp-2.4 dir but made about ten files in ~/Library/Application Support/Gimp Tell me the name of the expected file and I can do a better test. paul ---- Ready find ~ -newer tmp /Users/paultaney /Users/paultaney/.recently-used.xbel /Users/paultaney/Library/Application Support/Gimp /Users/paultaney/Library/Application Support/Gimp/colorrc /Users/paultaney/Library/Application Support/Gimp/controllerrc /Users/paultaney/Library/Application Support/Gimp/documents /Users/paultaney/Library/Application Support/Gimp/menurc /Users/paultaney/Library/Application Support/Gimp/parasiterc /Users/paultaney/Library/Application Support/Gimp/sessionrc /Users/paultaney/Library/Application Support/Gimp/templaterc /Users/paultaney/Library/Application Support/Gimp/themerc /Users/paultaney/Library/Application Support/Gimp/toolrc /Users/paultaney/Library/Application Support/Gimp/unitrc _______________________________________________ Gimp-developer mailing list Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer