summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-12-20 01:32:41 +0300
committerSimon Glass <sjg@chromium.org>2023-01-06 05:21:57 +0300
commit579916beb133ad74377964643c65c57fb3174cc6 (patch)
tree41a697cf8ddeed3a09ab08688301f0bc0caf1a80 /tools
parent648d8186dd7f9c444fb07f355090d275dcdd4de4 (diff)
downloadu-boot-579916beb133ad74377964643c65c57fb3174cc6.tar.xz
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/__init__.py2
-rwxr-xr-xtools/patman/__main__.py (renamed from tools/patman/main.py)0
l---------tools/patman/patman2
3 files changed, 2 insertions, 2 deletions
diff --git a/tools/patman/__init__.py b/tools/patman/__init__.py
index c9d3e35052..1b98ec7fee 100644
--- a/tools/patman/__init__.py
+++ b/tools/patman/__init__.py
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0+
__all__ = ['checkpatch', 'command', 'commit', 'control', 'cros_subprocess',
- 'func_test', 'get_maintainer', 'gitutil', 'main', 'patchstream',
+ 'func_test', 'get_maintainer', 'gitutil', '__main__', 'patchstream',
'project', 'series', 'setup', 'settings', 'terminal',
'test_checkpatch', 'test_util', 'tools', 'tout']
diff --git a/tools/patman/main.py b/tools/patman/__main__.py
index 2a2a7eaa24..2a2a7eaa24 100755
--- a/tools/patman/main.py
+++ b/tools/patman/__main__.py
diff --git a/tools/patman/patman b/tools/patman/patman
index 11a5d8e18a..5a427d1942 120000
--- a/tools/patman/patman
+++ b/tools/patman/patman
@@ -1 +1 @@
-main.py \ No newline at end of file
+__main__.py \ No newline at end of file