Author: soliton
Date: Fri Apr 24 00:32:55 2009
New Revision: 35149

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35149&view=rev
Log:
correct datadir option description and also use the datadir when copying the css

Modified:
    trunk/data/tools/wmlunits

Modified: trunk/data/tools/wmlunits
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlunits?rev=35149&r1=35148&r2=35149&view=diff
==============================================================================
--- trunk/data/tools/wmlunits (original)
+++ trunk/data/tools/wmlunits Fri Apr 24 00:32:55 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";,
@@ -953,8 +953,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

Reply via email to