Author: elias
Date: Wed Apr 9 22:27:52 2008
New Revision: 25716
URL: http://svn.gna.org/viewcvs/wesnoth?rev=25716&view=rev
Log:
Allow using ~ in the output option of wmlunits, and made it work with Python
2.3.
Modified:
trunk/data/tools/wmlunits
Modified: trunk/data/tools/wmlunits
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlunits?rev=25716&r1=25715&r2=25716&view=diff
==============================================================================
--- trunk/data/tools/wmlunits (original)
+++ trunk/data/tools/wmlunits Wed Apr 9 22:27:52 2008
@@ -358,7 +358,7 @@
return cmp(u1name, u2name)
def grid_place(nodes, x):
- nodes.sort(cmp = by_name)
+ nodes.sort(by_name)
for node in nodes:
level = int(node.unit.get_text_val("level"))
rows[x][level] = (1, node.breadth, node)
@@ -873,6 +873,8 @@
if not options.output:
op.print_help()
sys.exit(-1)
+
+ options.output = os.path.expanduser(options.output)
if not options.datadir:
wmltools.pop_to_top("wmlunits")
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits