correct datadir option description...

...and also use the datadir when copying the css
This commit is contained in:
Gunter Labes 2009-04-23 22:32:55 +00:00
parent 9535cf7fac
commit f59d1604fd

View file

@ -829,7 +829,7 @@ def copy_images():
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 @@ if __name__ == '__main__':
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")