prolog icon indicating copy to clipboard operation
prolog copied to clipboard

feature request consult relative to current file

Open Jean-Luc-Picard-2021 opened this issue 6 months ago • 0 comments

Many Prolog systems implement the semantics that consult, is not relative to the current working directory, except in the case of a top-level request, but

rather relative to the file that is curently consulted. I get this error, but there shouldn't be any error, since the folder tests has a file 'nrev.p':

?- ['tests/suite.p'].
2024/08/10 21:44:17 error(existence_error(source_sink,nrev.p),consult/1)

Jean-Luc-Picard-2021 avatar Aug 10 '24 19:08 Jean-Luc-Picard-2021