Merge pull request #23 from carnal0wnage/more_meta

More meta
This commit is contained in:
Chris Gates
2018-04-13 00:35:19 -04:00
committed by GitHub
4 changed files with 8 additions and 16 deletions

View File

@@ -1,11 +0,0 @@
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

View File

@@ -7,6 +7,6 @@ def list_all_files(directory):
for file in list_of_files:
filename_and_ext = os.path.splitext(file)
if filename_and_ext[1] == ".py":
if (filename_and_ext[1] == ".py") and not (filename_and_ext[0].startswith("__")):
array.append(filename_and_ext[0])
return array

View File

@@ -1,12 +1,9 @@
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
all_modules = list_all_files(foldername)

View File

@@ -12,6 +12,12 @@ import os
from config import AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
from botocore.exceptions import ClientError
from modules import *
import sys
sys.path.append("modules")
for module in all_modules:
exec("from %s import *"%module)
parser = argparse.ArgumentParser()
parser.add_argument("-s", "--step", help="list the step you would like to run",