First time here? Check out the FAQ!
answered 2021-09-19 13:02:12 -0500
I'm not sure whether this would help you, but if you use colcon, COLCON_PREFIX_PATH can be used to know sourced workspaces.
colcon
COLCON_PREFIX_PATH