Le 29/01/2011 22:01, Marco Mattila a écrit :
On Sat, Jan 29, 2011 at 10:24 PM, Marco Mattila<[email protected]> 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.
marco
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.
Thanks.
--
Jean-Pierre CHARRAS
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp