From 0025ec1d0ff916f70b1f030a9b0e8e28e0558801 Mon Sep 17 00:00:00 2001 From: Elias Pschernig Date: Wed, 14 May 2008 16:30:16 +0000 Subject: [PATCH] If the python AI can't find the wesnoth install, ...fall back to the current directory. --- src/ai_python.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ai_python.cpp b/src/ai_python.cpp index 2f5370b21cb..a434f953b69 100644 --- a/src/ai_python.cpp +++ b/src/ai_python.cpp @@ -1996,6 +1996,7 @@ void python_ai::play_turn() "\t\tsys.stderr.write(\"Python: Could not create pyerr.txt in current directory.\\n\")\n" "\tbackup = sys.path[:]\n" "\tsys.path.append(\"" + path + "/data/ais\")\n" + "\tsys.path.append(\"data/ais\")\n" "\ttry:\n" "\t\timport parse, safe\n" "\t\tparse.pathes = [\"" + path + "\"]\n"