PeakSat / minimal-dev-setup

2 stars 0 forks source link

CSP symlink quirk #8

Open lightspot21 opened 4 months ago

lightspot21 commented 4 months ago

CSP scripts use direct string concatenation to generate the actual paths for each peripheral module. An example (csp/arch/config/module.py):

    execfile(Module.getPath() + "../../csp/peripheral/config/peripheral.py", d, d)

Module.getPath() returns the absolute path to csp/arch without resolving the csp symlink. Resolution happens after concatenation, meaning that going two levels up from csp/arch will take us within the Conan package directory, and not within our fake Harmony framework root containing the symlinks.