summaryrefslogtreecommitdiffstats
path: root/sploit/rev/__init__.py
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-01-12 06:34:38 -0500
committerMalfurious <m@lfurio.us>2024-01-13 17:22:12 -0500
commit0e028487596091afb3ea1035f7f78ef7661c9c6e (patch)
tree734054113aabe07846d0e6714c0c8730d466ecc7 /sploit/rev/__init__.py
parentca8b392f52e91e46b5bd86b7285c2bc8192e1abd (diff)
downloadnsploit-0e028487596091afb3ea1035f7f78ef7661c9c6e.tar.gz
nsploit-0e028487596091afb3ea1035f7f78ef7661c9c6e.zip
rev: Expose modules' contents through package
This is the start of an overarching change meant to simplify sploit library imports. In general, all packages (directories) are intended to export all the classes, methods, and variables of their contained modules. This way users need only import the package, which leads to less verbose import statements (and usually fewer import statements). We would still like to gate objects behind their respective packages, rather than providing the whole world with `from sploit import *` so that users can still have some amount of control over what is brought into their global namespace. Beware: For code internal to sploit, full module imports should probably continue to be used. Otherwise, there is a possibility for circular imports if two modules from two packages cross import. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to '')
-rw-r--r--sploit/rev/__init__.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/sploit/rev/__init__.py b/sploit/rev/__init__.py
index 0d0dc9b..42e2f5b 100644
--- a/sploit/rev/__init__.py
+++ b/sploit/rev/__init__.py
@@ -1,6 +1,4 @@
-from . import (
- elf,
- gadget,
- ldd,
- r2,
-)
+from .elf import *
+from .gadget import *
+from .ldd import *
+from .r2 import *