forked from KGerhardt/RecruitPlotEasy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrpe2_main.py
More file actions
36 lines (29 loc) · 903 Bytes
/
rpe2_main.py
File metadata and controls
36 lines (29 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import sys
def main():
if len(sys.argv) < 2:
sys.exit("Please choose a module: either 'build' or 'plot' or 'describe'")
else:
action = sys.argv[1]
if action not in ["build", "plot", "describe"]:
print("I could not recognize your module:", action+".", "Please try again.")
sys.exit()
if action == "build":
try:
from .recruit_plot_easy_2_database import run_build
except:
from recruit_plot_easy_2_database import run_build
run_build()
if action == "plot":
try:
from .recruit_plot_easy_2_plot import run_plot
except:
from recruit_plot_easy_2_plot import run_plot
run_plot()
if action == "describe":
try:
from .recruit_plot_easy_2_describe import run_descriptor
except:
from recruit_plot_easy_2_describe import run_descriptor
run_descriptor()
if __name__ == "__main__":
main()