summaryrefslogtreecommitdiff
path: root/playoff.py
blob: c335b555b4a4a0ec2d57fd5b553c85b879f96718 (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
26
27
import traceback

from jfr_playoff.filemanager import PlayoffFileManager
from jfr_playoff.generator import PlayoffGenerator
from jfr_playoff.settings import PlayoffSettings


def main():

    try:
        settings = PlayoffSettings()

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

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

if __name__ == '__main__':
    main()