-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathalgae.py
executable file
·46 lines (38 loc) · 1.02 KB
/
algae.py
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
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python
import helpers.io as io
from helpers.config import Config
from helpers.progress import Progress
from helpers.args import Args
from helpers.args import getConfigFile
from helpers.corpus import Corpus
from helpers.runner import Runner
if __name__ == "__main__":
io.printLine()
print "Welcome to Algae!"
io.printLine()
# import the config
io.printRaw('importing configuration... ')
configFile = getConfigFile()
config = Config(configFile)
print "done!"
# import the progress
io.printRaw('importing progress... ')
progress = Progress(configFile)
print "done!"
# check program arguments, generate jobs
io.printRaw('checking arugments... ')
args = Args(config)
print "done!"
# check the corpus
io.printRaw('checking corpus... ')
corpus = Corpus(config)
print "done!"
io.printLine()
# run the jobs
print "running jobs:\n"
runner = Runner(config, progress, args, corpus)
runner.run()
# all done!
io.printLine()
print "Goodbye!"
io.printLine()