diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 61d3adb..1e2fdd9 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -16,7 +16,7 @@ jobs: strategy: matrix: python-version: [ '3.9', '3.13' ] - os: [ "ubuntu-22.04", "ubuntu-24.04" ] + os: [ "ubuntu-22.04", "ubuntu-24.04", "windows-latest" ] fail-fast: false runs-on: "${{ matrix.os }}" 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(