-
Notifications
You must be signed in to change notification settings - Fork 747
Closed
Description
Hi all,
I am trying to understand the following statement in __init__.py
Lines 88 to 90 in 154f3a0
| if __name__ == '__main__': # pragma: no cover | |
| from pygments.cmdline import main | |
| sys.exit(main(sys.argv)) |
As I understood, the mentioned lines should never be executable. An __init__.py declares directory as a package und could provide functions on top-level.
But is it possible to execute __init__.py as script, like per __main__.py?
Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels