← Back to team overview

kicad-developers team mailing list archive

Re: howto getting pcbnew board path and name from inside python console

 

I just check this an on windows using process viewer and KIPRJMOD is set
to path where the board file is located.  If there is no pro file and
the path is writable, pcbnew will create a default pro in the same path.

On 11/3/2015 4:18 AM, easyw wrote:
> Hi,
> if I open a project in kicad and then the board I can get the var import os
> os.getenv('KIPRJMOD')
> 
> but if I open just the board directly from pcbnew, the var is empty...
> 
> in which way I can get board name and path?
> 
> thanx
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp


References