fzi-forschungszentrum-informatik / robot_folders

robot_folders helps you managing multiple source projects with their own workspaces mainly around the ROS ecosystem.
MIT License
47 stars 4 forks source link

Rework sourcing #2

Open fmauch opened 6 months ago

fmauch commented 6 months ago

Sourcing workspaces is currently a bit annoying. Since sourcing lives in a bash script we need the fzirob wrapper to be rather complex. A lot of this functionality could be moved to python so sourcing could be re-used from other scripts such as build and (future) test.

We could use a mechanism like running "bash -c 'source init_env > /dev/null 2>&1 && env'" in a subprocess and then read the variables from the output.