Author: soliton
Date: Fri Apr 24 00:31:38 2009
New Revision: 35148
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35148&view=rev
Log:
correct datadir option description and also use the datadir when copying the css
Modified:
branches/1.6/data/tools/wmlunits
Modified: branches/1.6/data/tools/wmlunits
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/data/tools/wmlunits?rev=35148&r1=35147&r2=35148&view=diff
==============================================================================
--- branches/1.6/data/tools/wmlunits (original)
+++ branches/1.6/data/tools/wmlunits Fri Apr 24 00:31:38 2009
@@ -829,7 +829,7 @@
if not options.nocopy:
print "Copying files."
image_collector.copy_and_color_images(options.output)
- shutil.copy2(os.path.join("data", "tools/unit_tree/style.css"),
options.output)
+ shutil.copy2(os.path.join(datadir, "tools/unit_tree/style.css"),
options.output)
for grab in [
"http://www.wesnoth.org/mw/skins/glamdrol/headerbg.jpg",
"http://www.wesnoth.org/mw/skins/glamdrol/wesnoth-logo.jpg",
@@ -955,8 +955,7 @@
op.add_option("-n", "--nocopy", action = "store_true",
help = "No copying of files.")
op.add_option("-d", "--datadir",
- help = "Specify Wesnoth's data to use. Default is to search current "+\
- "directory upwards.")
+ help = "Specify Wesnoth's data to use. Default is <current
directory>/data.")
op.add_option("-u", "--userdir",
help = "Specify user data dir to use, which is automatically scanned
"+\
"for addons. For example -u ~/.wesnoth/data")
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits