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:
Ignacio R. Morelle 2017-08-14 14:41:37 -03:00
parent 64ebfae7a3
commit abc0eb5d16

View file

@ -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):