Fix use_module import errors

This commit is contained in:
Adrián Arroyo Calle
2021-11-28 13:20:09 +01:00
parent 86161ccf2a
commit 7eb0669de5

View File

@@ -503,7 +503,7 @@ open_file(Path, Stream) :-
( atom_concat(_, '.pl', Path) ->
open(Path, read, Stream)
; catch(open(Path, read, Stream),
error(existence_error(source_sink, Path), _),
error(existence_error(source_sink, _), _),
( atom_concat(Path, '.pl', ExtendedPath),
open(ExtendedPath, read, Stream) )
)