← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Saving plot dialog settings


Le 29/01/2011 22:01, Marco Mattila a écrit :
On Sat, Jan 29, 2011 at 10:24 PM, Marco Mattila<marcom99@xxxxxxxxx>  wrote:
I've been rearranging the plot dialog. The current status is shown in
the attachment. There should be enough room to add a checkbox for
marking the path relative.

On second thought, it should be possible to infer from the path
whether it is relative or not (starts with / or not (in linux)). In
this case relative to the project directory, I guess. Need to check
how wxWidgets deals with paths.


Most of time plot subdirectory is a subdirectory of the current working directory.
Mainly in this case (easy to detect), the stored path must be relative to the CWD.
Do not forget the CWD can easily change for a given project( for instance when you copy/move/save your projects)

Do do forget to store paths names in "unix like" form, i.e. replace \ by / (if any).
This ensure Kicad files compatibility between platforms, especially for subdirectories in the CWD, because (unlike the full path) the relative path usually does not depend of platform.


Jean-Pierre CHARRAS

Follow ups