Skip to content

Document how to display a local file #4

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.

Activity

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

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