Skip to content

Add setup decorator to use on __init__ methods for main scripts #2

Description

@federicoruggeri

Instead of

if __name__ == '__main__':
    Registry.build(
        directory=Path(...)
    )
    logging.basicConfig(level=logging.INFO)

    # custom code

We could do something like

@Registry.build(directory=Path(...))
if __name__ == '__main__':
    ....

Metadata

Metadata

Labels

enhancementNew feature or request

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions