summaryrefslogtreecommitdiff
path: root/playoff.py
blob: 59038f807ac5443739ea9c81c67500d3548a70c5 (plain)
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
import traceback
from jfr_playoff.settings import PlayoffSettings
from jfr_playoff.generator import PlayoffGenerator
from jfr_playoff.filemanager import PlayoffFileManager

def main():

    try:
        s = PlayoffSettings()

        generator = PlayoffGenerator(s)
        content = generator.generate_content()

        file_manager = PlayoffFileManager(s)
        file_manager.write_content(content)
        file_manager.copy_scripts()
        file_manager.send_files()
    except:
        print traceback.format_exc()
    finally:
        if s.interactive:
            raw_input('Press any key to continue...')

if __name__ == '__main__':
    main()