diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 114f84c..3c9c4dc 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -30,3 +30,4 @@ David Cox Maximilian Peltzer Adi Harif Oisín Mac Fhearaí +Lorenzo Matera diff --git a/src/pyswip/prolog.py b/src/pyswip/prolog.py index 0c87c03..70b88b5 100644 --- a/src/pyswip/prolog.py +++ b/src/pyswip/prolog.py @@ -390,7 +390,11 @@ def consult( :param relative_to: The path where the consulted file is relative to """ path = resolve_path(path, relative_to) - next(cls.query(str(path).join(["consult('", "')"]), catcherrors=catcherrors)) + next( + cls.query( + str(path.as_posix()).join(["consult('", "')"]), catcherrors=catcherrors + ) + ) @classmethod def query(