Skip to content

Directory separator is os-dependent ('/' vs. '\', css_file) #61

Open
@Sogolumbo

Description

The path to the css file may have to be interpreted by a browser on a windows machine. The hardcoded / characters here cause an error:
The css file can not be found.

Replacing the line with the following code works on Windows:

css_file = "file:///" + os.path.join(plugin_path, "static", "seo_report.css")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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