Skip to content

KnowledgeBase default init doesn't work on Windows Systems #18

@Brendan-Joyce

Description

@Brendan-Joyce

In the init function of KnowledgeBase a strict check on type for the graph variable is preformed. In most cases this works as the PosixPath type is used in linux systems. I happened to be accessing the library from my Windows machine today, unfortunately the ImportLib code declares a different path type depending on the OS. For windows that is the WindowsPath object. I believe all of all possible Path objects have a root class of "Path" so if you do an instance check on Path instead it should work for all operating systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions