Skip to content

Commit

Permalink
wmlunits: Get menu.js from the execution path, not the Wesnoth data dir
Browse files Browse the repository at this point in the history
Otherwise we end-up with an obsolete version of menu.js from 1.12 when
reading 1.12 data.
  • Loading branch information
irydacea committed Aug 14, 2017
1 parent 64ebfae commit abc0eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/tools/wmlunits
Expand Up @@ -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):
Expand Down

0 comments on commit abc0eb5

Please sign in to comment.