summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-01-13 14:59:20 -0500
committerMalfurious <m@lfurio.us>2024-05-19 17:52:10 -0400
commitc71df559f277167501d25057519f627481088c99 (patch)
treece42f24a9b484c904e55b79c38fb2f7a9e282935
parent8b80091fd1af821e0937eae2c208b0117ad0a996 (diff)
downloadsploit-c71df559f277167501d25057519f627481088c99.tar.gz
sploit-c71df559f277167501d25057519f627481088c99.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()