mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-05-06 17:28:30 +00:00
* changed python version to 3.8.rc and removed wireshark from build. also added a plugin to supress scapy's warnings about the manuf * changed to alpine 3.10, on docker file and removed unnecessary logging suppression * changed to python 3.7 * changed base image on builder as well
7 lines
300 B
Python
7 lines
300 B
Python
from os.path import dirname, basename, isfile
|
|
import glob
|
|
|
|
# dynamically importing all modules in folder
|
|
files = glob.glob(dirname(__file__)+"/*.py")
|
|
for module_name in (basename(f)[:-3] for f in files if isfile(f) and not f.endswith('__init__.py')):
|
|
exec('from .{} import *'.format(module_name)) |