1. Show hidden files in Finder
  2. Find and enter the folder Macintosh HD/etc
  3. If there is not a folder called paths.d, create it
  4. In the folder paths.d create and edit the file myfile, whose content will be the absolute paths of the target folders (one line each)