diff options
author | Malfurious <m@lfurio.us> | 2024-01-13 09:26:09 -0500 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-05-19 17:52:10 -0400 |
commit | 8b80091fd1af821e0937eae2c208b0117ad0a996 (patch) | |
tree | 5ecfdef17b3a1a89c65075ac92e2d6038ac486a9 /sploit.py | |
parent | ca58214730f0f480d15be9552a9455f73e26a907 (diff) | |
download | sploit-8b80091fd1af821e0937eae2c208b0117ad0a996.tar.gz sploit-8b80091fd1af821e0937eae2c208b0117ad0a996.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() |