Upgrade for 0.2 version of capnproto C++ library

This commit is contained in:
Jason Paryani
2013-08-10 13:58:08 -07:00
parent 3ece246f23
commit 07e9d370a9
3 changed files with 3 additions and 3 deletions

View File

@@ -564,7 +564,7 @@ def _load(module, node, loader, name):
return local_module
def load(file_name, cat_path='/bin/cat'):
p = subprocess.Popen(['capnpc', '-o'+cat_path, file_name], stdout=subprocess.PIPE)
p = subprocess.Popen(['capnp', 'compile', '-o'+cat_path, file_name], stdout=subprocess.PIPE)
retcode = p.wait()
if retcode != 0:
raise RuntimeError("capnpc failed for some reason. Make sure `capnpc` is in your path, and that the path to cat (%s) is correct" % cat_path)