From 3485b3be6c03617f3385a009b66c756c64b06e84 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Sat, 21 Jul 2012 17:29:56 +0100 Subject: usage info for converter scripts --- extra/tagsections_convert.py | 11 ++++++++++- extra/theme_convert.py | 7 +++++++ 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'extra') diff --git a/extra/tagsections_convert.py b/extra/tagsections_convert.py index 82ccd33e..3a73f60f 100755 --- a/extra/tagsections_convert.py +++ b/extra/tagsections_convert.py @@ -1,4 +1,13 @@ #!/usr/bin/python +""" + CONFIG CONVERTER + this script converts your custom tag string section from the v.3.1 syntax + to the current format. + + >>> tagsections_convert.py -o config.new config.old + + will convert your whole alot config safely to the new format. +""" from configobj import ConfigObj import argparse @@ -63,6 +72,6 @@ if __name__ == "__main__": del(sec['bg']) sec['normal'] = att - if sec['hidden']: + if sec.get('hidden'): sec['translated'] = '' cfg.write(out) diff --git a/extra/theme_convert.py b/extra/theme_convert.py index 8a0d26ca..20113be0 100755 --- a/extra/theme_convert.py +++ b/extra/theme_convert.py @@ -1,4 +1,11 @@ #!/usr/bin/python +""" + THEME CONVERTER + this script converts your custom alot theme files from the v.3.1 syntax + to the current format. + + >>> theme_convert.py -o themefile.new themefile.old +""" from configobj import ConfigObj import argparse -- cgit v1.2.3