[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: path of files given in source-attribute



Arvid Rosén wrote:

> With relative path, or absolute paths, it would have been easy. Now, I
> have to change my gnetlistrc-file between each gnetlist-call using my
> script. Quite ugly!

Perhaps the right way to handle this would be as follows:

 - If the path is absolute: use the file at that location if it exists,
   or otherwise fail.

 - If the path is relative:
   1. Search relative to the directory containing the calling schematic
   2. Search relative to the directory specified in the .gafrc file
   3. Search relative to the CWD
   4. Fail

Thoughts?

Peter


--
Quake II build tools: https://adidas.servegame.org/projects/buildutils/



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user