From d051f6d7daa4e0c025dcb58af392cca47c6019d7 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 13 Jan 2024 09:26:09 -0500 Subject: Remove extra "main.py" file The CLI logic is moved to sploit/__main__.py. This file is now the target of: - python -m sploit - sploit.py (via import) - sploit (installed executable - via pyproject.toml) A module guard (`if __name__ == "__main__"`) is added to allow the application to run when this file is invoked directly. And the entrypoint symlink is no longer necessary. Signed-off-by: Malfurious --- sploit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sploit.py') diff --git a/sploit.py b/sploit.py index fd9b482..419f9b1 100755 --- a/sploit.py +++ b/sploit.py @@ -1,3 +1,3 @@ #!/usr/bin/env python3 -from sploit.main import main +from sploit.__main__ import main main() -- cgit v1.2.3