Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 447 Bytes
from subprocess import Popen, PIPE
import os
def gen_riak_protobufs():
if not os.path.exists('riak_fastproto'):
os.mkdir('riak_fastproto')
protoc = Popen(
[
"protoc",
"--proto_path=.",
"--fastpython_out=riak_fastproto",
"--cpp_out=riak_fastproto",
"riak.proto",
],
)
protoc.communicate()
if __name__ == '__main__':
gen_riak_protobufs()
Something went wrong with that request. Please try again.