#!/usr/bin/python3

import sys
import os

path_in = sys.argv[1]
path_out = sys.argv[2]
interface = os.path.basename(path_in).replace('.', '_')

with open(path_out, 'wt') as output:
    print('static const char *{} = R"INTERFACE('.format(interface), file=output)
    print(open(path_in).read(), end='', file=output)
    print(')INTERFACE";', file=output)

#!/usr/bin/env python3

import sys
import os

path_in = sys.argv[1]
path_out = sys.argv[2]
interface = os.path.basename(path_in).replace('.', '_')

with open(path_out, 'wt') as output:
    print('static const char *{} = R"INTERFACE('.format(interface), file=output)
    print(open(path_in).read(), end='', file=output)
    print(')INTERFACE";', file=output)

use env for python3 path