From c71df559f277167501d25057519f627481088c99 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 13 Jan 2024 14:59:20 -0500 Subject: 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 --- sploit/__init__.py | 15 +++++---------- 1 file 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() -- cgit v1.2.3