Merge pull request #20 from carnal0wnage/build_in_some_logic
METAPOGRAMMING FTW
This commit is contained in:
@@ -1 +1,11 @@
|
||||
import os
|
||||
from libs.utils.common import *
|
||||
|
||||
|
||||
# Get the application's path (wherever weirdAAL.py is located will be the dirpath )
|
||||
dirpath = os.getcwd()
|
||||
# The actual location of this file on the filesystem is the "foldername"
|
||||
foldername = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
all_files = list_all_files(foldername)
|
||||
__all__ = all_files
|
||||
|
||||
@@ -849,7 +849,7 @@ def brute_machinelearning_permissions(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY):
|
||||
#NO functions to call without arguements
|
||||
|
||||
#http://boto3.readthedocs.io/en/latest/reference/services/mgh.html
|
||||
#TODO
|
||||
#TODO
|
||||
|
||||
#http://boto3.readthedocs.io/en/latest/reference/services/mobile.html
|
||||
#TODO
|
||||
|
||||
0
libs/utils/__init__.py
Normal file
0
libs/utils/__init__.py
Normal file
12
libs/utils/common.py
Normal file
12
libs/utils/common.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import os
|
||||
|
||||
def list_all_files(directory):
|
||||
list_of_files = os.listdir(directory)
|
||||
|
||||
array = []
|
||||
|
||||
for file in list_of_files:
|
||||
filename_and_ext = os.path.splitext(file)
|
||||
if filename_and_ext[1] == ".py":
|
||||
array.append(filename_and_ext[0])
|
||||
return array
|
||||
Reference in New Issue
Block a user