From: Stephen Soltesz Date: Wed, 24 Sep 2008 19:29:22 +0000 (+0000) Subject: generate shell version of config options X-Git-Tag: Monitor-1.0-9~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=fe6912be9d7dd52418b9d53026d0812ae0e3caf1;p=monitor.git generate shell version of config options --- diff --git a/shconfig.py b/shconfig.py new file mode 100755 index 0000000..0b28577 --- /dev/null +++ b/shconfig.py @@ -0,0 +1,8 @@ +#!/usr/bin/python + +import config + +for attr in dir(config): + val = config.__getattribute__(attr) + if attr[0].isupper() and attr[1].isupper(): + print "%s=%s " % (attr, val)