If the python AI can't find the wesnoth install,

...fall back to the current directory.
This commit is contained in:
Elias Pschernig 2008-05-14 16:30:16 +00:00
parent 0af5f75992
commit 0025ec1d0f

View File

@ -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"