From 374abb7afbe82611c81d7bfb7b4c422cc7b20252 Mon Sep 17 00:00:00 2001 From: void Date: Wed, 12 Aug 2009 23:28:38 +0200 Subject: [PATCH] Added another error message to the Python initialisation code --- craw/python.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/craw/python.cpp b/craw/python.cpp index bc7dbe2..63296c3 100644 --- a/craw/python.cpp +++ b/craw/python.cpp @@ -258,7 +258,10 @@ namespace python PyRun_SimpleString(("import sys\nsys.path.append('" + script_directory + "')\n").c_str()); if(PyRun_SimpleString(content.c_str()) != 0) + { + write_line("The main Python script contained errors."); return false; + } //PyRun_SimpleString(("execfile('" + ail::replace_string(python_script, "\\", "\\\\") + "')").c_str()); -- 2.11.4.GIT