summaryrefslogtreecommitdiff
path: root/playoff.py
blob: 48da0111c0c785d916ad9ccf7d72a84cdf269c42 (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:
        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()