OpenCyphal / nunavut

Generate code from DSDL using PyDSDL and Jinja2
https://nunavut.readthedocs.io/
Other
39 stars 24 forks source link

Add support for CYPHAL_PATH #305

Open pavel-kirienko opened 1 year ago

pavel-kirienko commented 1 year ago

It seems like Nunavut expects the env vars to contain the list of root namespace directories, not the list of directories that contain root namespace directories in them. Observe:

outer/
    scotec/             <-- a DSDL root namespace
        Thing.1.0.dsdl
    ns/                 <-- a DSDL root namespace
        Foo.1.0.dsdl

CYPHAL_PATH would contain outer while your path variables would contain outer/scotec:outer/ns.

Originally posted by @pavel-kirienko in https://github.com/OpenCyphal/nunavut/issues/303#issuecomment-1553182892