summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-01-13 14:59:20 -0500
committerMalfurious <m@lfurio.us>2024-01-13 17:22:12 -0500
commit67b5a873a2f6f506fc0450fcb22b58f3e6612dc0 (patch)
tree5395064aa6b0dec947fd888bd96e04a8a6b6646d
parentd051f6d7daa4e0c025dcb58af392cca47c6019d7 (diff)
downloadnsploit-67b5a873a2f6f506fc0450fcb22b58f3e6612dc0.tar.gz
nsploit-67b5a873a2f6f506fc0450fcb22b58f3e6612dc0.zip
sploit: Expose modules' contents through package
This completes the overarching package reorganization changes. The contents of the top-level "sploit" package's direct children modules are exported via the package. Explicit imports for sploit's subpackages are not necessary. Other package __init__.py files are using relative imports. However, doing so here causes the hatchling build process to fail. Fortunately, since this is the top level, absolute paths aren't too long. The last few modules left in this package have been kept back since they lack any specific niche, are considered "universally relevant", or are typically imported so frequently that it makes sense to provide them to scripts automatically. Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r--sploit/__init__.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/sploit/__init__.py b/sploit/__init__.py
index f443fe9..dc5943f 100644
--- a/sploit/__init__.py
+++ b/sploit/__init__.py
@@ -1,11 +1,6 @@
-from sploit import (
- arch,
- comm,
- payload,
- rev,
- symtbl,
- until,
- util,
-)
+from sploit.arch import *
+from sploit.symtbl import *
+from sploit.until import *
-__version__ = util.git_version()
+from sploit.util import git_version as __git_version
+__version__ = __git_version()