wmlunits: Get menu.js from the execution path, not the Wesnoth data dir
Otherwise we end-up with an obsolete version of menu.js from 1.12 when reading 1.12 data.
This commit is contained in:
parent
64ebfae7a3
commit
abc0eb5d16
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ TIMEOUT = 20
|
|||
def copy_images():
|
||||
print("Recolorizing pictures.")
|
||||
image_collector.copy_and_color_images(options.output)
|
||||
shutil.copy2(os.path.join(image_collector.datadir,
|
||||
"data/tools/unit_tree/menu.js"),
|
||||
shutil.copy2(os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
||||
"unit_tree/menu.js"),
|
||||
options.output)
|
||||
|
||||
def shell(com):
|
||||
|
|
Loading…
Add table
Reference in a new issue