From: Maxim Cournoyer Date: Mon, 19 Dec 2022 22:32:41 +0000 (-0500) Subject: patman: rename main script to __main__.py X-Git-Tag: v2023.07~207^2~2^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=579916beb133ad74377964643c65c57fb3174cc6;p=platform%2Fkernel%2Fu-boot.git 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 Signed-off-by: Maxim Cournoyer Fix up main.py in __init__.py: Signed-off-by: Simon Glass --- diff --git a/tools/patman/__init__.py b/tools/patman/__init__.py index c9d3e35..1b98ec7 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 similarity index 100% rename from tools/patman/main.py rename to tools/patman/__main__.py diff --git a/tools/patman/patman b/tools/patman/patman index 11a5d8e..5a427d1 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