mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 07:07:43 +00:00
If the python AI can't find the wesnoth install,
...fall back to the current directory.
This commit is contained in:
parent
0af5f75992
commit
0025ec1d0f
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user