diff options
author | Malfurious <m@lfurio.us> | 2024-01-13 09:26:09 -0500 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-01-13 17:22:12 -0500 |
commit | d051f6d7daa4e0c025dcb58af392cca47c6019d7 (patch) | |
tree | c10e90326ee2772ced8e9ee7d74d8c9f870cd1d9 /sploit.py | |
parent | 03e1f242f69903fcd132010228259231301b3f43 (diff) | |
download | nsploit-d051f6d7daa4e0c025dcb58af392cca47c6019d7.tar.gz nsploit-d051f6d7daa4e0c025dcb58af392cca47c6019d7.zip |
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 <m@lfurio.us>
Diffstat (limited to 'sploit.py')
-rwxr-xr-x | sploit.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,3 +1,3 @@ #!/usr/bin/env python3 -from sploit.main import main +from sploit.__main__ import main main() |