summaryrefslogtreecommitdiff
path: root/python.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-25 03:30:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-25 03:30:23 -0400
commit66bc51db6d17d9fd01baed7ae85099094a00c091 (patch)
tree533d4389dcf13a90d701ea9043cd0e5d2bdccc36 /python.h
parent3a3227298dcd4faabd93e6f4bcaede10f29b13fd (diff)
downloadfork-ledger-66bc51db6d17d9fd01baed7ae85099094a00c091.tar.gz
fork-ledger-66bc51db6d17d9fd01baed7ae85099094a00c091.tar.bz2
fork-ledger-66bc51db6d17d9fd01baed7ae85099094a00c091.zip
added pysample.dat, which provides a more realistic example of using Python
Diffstat (limited to 'python.h')
-rw-r--r--python.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/python.h b/python.h
index 7faefa0d..c560170b 100644
--- a/python.h
+++ b/python.h
@@ -1,6 +1,8 @@
#ifndef _PYTHON_H
#define _PYTHON_H
+#include "error.h"
+
#include <boost/python.hpp>
using namespace boost::python;
@@ -47,6 +49,7 @@ inline void python_eval(std::istream& in)
}
catch(const boost::python::error_already_set&) {
PyErr_Print();
+ throw error("Evaluating Python code");
}
}