Can I define an environment variable relative to another environment variable?

Hello!

In KiCad 7, can I define an environment variable relative to another environment variable?
For example, I want to define an environment variable MYVARIABLE referring to /home/user/Documents/myproject/somedirectory, however I know that ${KIPRJMOD} must already be referring to the root directory of my project, that is, to /home/user/Documents/myproject, and I want to define MYVARIABLE somehow like ${KIPRJMOD}/somedirectory.
However, when I do it, it doesn’t seem to work. Am I doing it wrong I is this feature not supported?

Thanks!

It works on my KiCad 7.NN.
A symbol library is located at /tmp/a/anderer/bibliothek.kicad_sym. The KiCad project at /tmp/a/test/test.kicad_pro.
The variable AAA is set to /tmp/a/ and the variable ABCD is set to ${AAA}/anderer/. The library manager uses ${ABCD}/bibliothek.kicad_sym. And this correctly refers to the library at /tmp/a/anderer/bibliothek.kicad_sym and symbols from it can be placed.

paths

libraries

Does that not work on your Version?

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.