Parenthesis for Environment Variables in fp-lib-table

Hi,

I stumbled oven an inconsistency between the global fp-lib-table and the project’s fp-lib-table:

  • the global one uses ${…} with curly braces
  • and the project’s one uses $(KIPRJMOD) with round craces.

Is this intended? What is the exactly rule for that?

  • is KIPRJMOD allways used with round braces
  • does project’s fp-lib-table use round braces?

Thanks,
Karl

One clue here: https://stackoverflow.com/questions/25185607/whats-the-difference-between-parenthesis-and-curly-bracket-syntax-in-ma?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

seems plausible, but an official statement would be great.

Kicad will, for the most part*, read either. For likely historical reasons the Footprint Libraries Wizard and the Eagle importer write the “$(” version while most of the rest of Kicad writes “${”.

  • The code which generates the read-only substitutions list at the bottom of the Footprint Libraries dialog only reads the ${ version. I think I’ll go fix that now…
4 Likes

Thanks for your reply. In our kicad-models-updater I’ve fixed this too. The parser now looks for both variants.

1 Like

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