@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user