WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

[Python bindings] hl.main() does not accept arguments #8903

@jiawen

Description

@jiawen

As the title says, when using the Python bindings with generators, hl.main() does not accept any arguments. It instead reads sys.argv (this was not easy to find!).

Discussed offline with @alexreinking: it should allow argv to be passed in but default to to sys.argv. We may also want to go all in on using kwargs instead.

This is probably easier to implement in the form of a Python wrapper than directly in Pybind11.

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