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:
cktricky
2018-04-12 23:58:20 -04:00
parent f59e8b9f4f
commit 78916326b9
4 changed files with 8 additions and 16 deletions

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",