Easily bootstrap an OS project to fool HR departments and pad your resume.

def main(name, output, font):
    """ Easily bootstrap an OS project to fool HR departments and pad your resume. """

    # The path of the directory where the final files will end up in
    bootstrapped_directory = os.getcwd() + os.sep + name.lower().replace(' ', '-') +  os.sep

    # Copy the template files to the target directory
    copy_tree(get_real_path(os.sep + 'my-cool-os-template'), bootstrapped_directory)

    # Create the necessary assembly mov instructions for printing out the output on boot
    start_byte = int('0xb8000', 16)
    instructions_list = []

    for c in output:
        char_as_hex = '0x02'+ c.encode('hex')
        instructions_list.append('\tmov word [{0}], {1} ; {2}'.format(hex(start_byte), char_as_hex, c))
        start_byte += 2

    # Render the ASCII banner to be displayed in the README (A must for any serious hobby OS project!)
    banner = Figlet(font=font).renderText(name)

    render_template_file(bootstrapped_directory  + 'README.md', {'name' : name, 'banner' : banner})
    render_template_file(bootstrapped_directory  + 'grub.cfg' , {'name' : name})
    render_template_file(bootstrapped_directory  + 'boot.asm' , {'instructions_list' : instructions_list})

    print('finished bootstrapping project into directory ' + bootstrapped_directory)