From fe6912be9d7dd52418b9d53026d0812ae0e3caf1 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Wed, 24 Sep 2008 19:29:22 +0000 Subject: [PATCH] generate shell version of config options --- shconfig.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 shconfig.py 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) -- 2.45.2