]> git.dujemihanovic.xyz Git - u-boot.git/commit
patman: rename main script to __main__.py
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 19 Dec 2022 22:32:41 +0000 (17:32 -0500)
committerSimon Glass <sjg@chromium.org>
Fri, 6 Jan 2023 02:21:57 +0000 (19:21 -0700)
commit579916beb133ad74377964643c65c57fb3174cc6
tree41a697cf8ddeed3a09ab08688301f0bc0caf1a80
parent648d8186dd7f9c444fb07f355090d275dcdd4de4
patman: rename main script to __main__.py

This allows running the package as a Python module, like e.g.:

    $ python -m patman

It also prevents Pytest from attempting to parse main.py, which
would cause errors.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
Fix up main.py in __init__.py:
Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/__init__.py
tools/patman/__main__.py [moved from tools/patman/main.py with 100% similarity]
tools/patman/patman