def proto_gen_cmd(source, gen_type, gen_dir):
  ensure_dir(gen_dir)
  if gen_type == 'py':
    return ['protoc', source, '--python_out=%s' % os.path.dirname(source),
             '-I%s' % os.path.dirname(source)]
dataset/ETHPy150Open viewfinderco/viewfinder/__init__.py/proto_gen_cmd/original