Skip to content

Document how to display a local file #4

@kubilayeksioglu

Description

@kubilayeksioglu

Documentation displays how to open up http://breach.cc but there's no option to display a local file.

Currently this is what I'm using:

ROOT_FOLDER = os.path.abspath(os.path.dirname(__file__))
window = api.window({'root_url': 'file://%s/html/index.html' % ROOT_FOLDER})

but there might be a better option which I do not know.

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