From 93ea4c4d2ea2b1ff3dfee40fb114f3080001e4ce Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 16 Feb 2003 18:16:55 +0000 Subject: supply more information about errors when running scripts --- src/python.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/python.hh') diff --git a/src/python.hh b/src/python.hh index 8c383904..f1d701a8 100644 --- a/src/python.hh +++ b/src/python.hh @@ -231,7 +231,8 @@ typedef void (*EventCallback)(EventData*, void*); void python_init(char *argv0); void python_destroy(); -bool python_exec(const std::string &path); +//! Returns 0 for success, 1 for failing to open the file, 2 for an exception +int python_exec(const std::string &path); #endif // SWIG -- cgit v1.2.3