so now we can load modules dynamically. Also, the tutorials for python seem insane. Why was this simple answer not the first to pop. Ugh.
This commit is contained in:
@@ -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