← Back to team overview

kicad-developers team mailing list archive

Mac paths help?

 

Hi all,

I'm looking into prepopulating the list of BOM plugins in eeschema, and 
further possibly cleaning up resource file access in general. Can I get 
someone who's using kicad on Mac to run this script in the pcbnew Python 
console to help me out a bit?

import wx; sp = wx.StandardPaths.Get()

for i in dir(sp):
    if not i.startswith("Get"):
        continue
    try:
        print("%s:\t%s" % (i, getattr(sp, i)()))
    except Exception:
        pass

You might have to copy and paste it in two blocks as split above...the
console's a bit quirky for me.

Thanks!

--
Chris



Follow ups