diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-07-21 17:29:56 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-07-21 17:30:37 +0100 |
commit | 3485b3be6c03617f3385a009b66c756c64b06e84 (patch) | |
tree | bf25f226f9f40e59c50400d139d03f6f6e69df69 | |
parent | 722ce9d49ef9e4e92c5c13aa074aa6b82e43b7bc (diff) |
usage info for converter scripts
-rwxr-xr-x | extra/tagsections_convert.py | 11 | ||||
-rwxr-xr-x | extra/theme_convert.py | 7 |
2 files changed, 17 insertions, 1 deletions
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 |