Skip to content

path to string with pathlib leads to error on Windows #549

@eomasters-repos

Description

@eomasters-repos

The following code doesn't work anymore. In version 24.2.2 it works.

    from pathlib import Path
    file_path = Path(__file__)
    print("file_path:", str(file_path))

This is the error:

Caused by: org.graalvm.polyglot.PolyglotException: AttributeError: module 'ntpath' has no attribute 'splitroot'
	at <python>.__str__(Unknown)
	at <python>.<module>(Unknown)
	at org.graalvm.polyglot.Context.eval(Context.java:416)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions