and the file src/pl/prog.pl contains a query[eclipse 1]: compile('src/pl/prog').
then the system searches for the files part1.pl and part2.pl in the directory src/pl and not in the current directory. Usually larger ECLiPSe programs have one main file which contains only commands to compile all the subfiles. In ECLiPSe it is possible to compile this main file from any directory. (Note that if your program is large enough to warrant breaking into multiple files (let alone multiple directories), it is probably worth turning the constituent components into modules — see chapter 7.):- [part1, part2].