(output_dir)
return key_file
Creates a keys.json file mapping Closure keys to Blockly keys.

    Args:
        output_dir: Relative directory for output files.

    Raises:
        IOError: An error occurred while creating the file.
Creates a keys.json file mapping Closure keys to Blockly keys.
Creates a keys . json file mapping Closure keys to Blockly keys .
def _create_key_file(output_dir):
    """Creates a keys.json file mapping Closure keys to Blockly keys.

    Args:
        output_dir: Relative directory for output files.

    Raises:
        IOError: An error occurred while creating the file.
    """
    key_file_name = os.path.join(os.curdir, output_dir, 'keys.json')
    key_file = open(key_file_name, 'w')
    key_file.write('{\n')
    print 'Created file: ' + key_file_name
    return key_file
def _create_key_file ( output_dir ) : key_file_name = os . path . join ( os . curdir , output_dir , 'keys.json' ) key_file = open ( key_file_name , 'w' ) key_file . write ( '{\n' ) print 'Created file: ' + key_file_name return key_file