X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=config.py;h=9efdecc748f4b5e802154df0ff691f70a3bc9b0b;hb=95221af187a49007095148f182c74467db555009;hp=d5c833817b353cbea5aebeb3de131d0a715618a7;hpb=45fe2cdaa18e28009184e95c2bed2346e2fc3eda;p=nodemanager.git diff --git a/config.py b/config.py index d5c8338..9efdecc 100644 --- a/config.py +++ b/config.py @@ -1,14 +1,19 @@ #!/usr/bin/python # +# $Id$ +# $URL$ +# # Parses the PLC configuration file /etc/planetlab/plc_config, which # is bootstrapped by Boot Manager, but managed by us. # # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: config.py,v 1.4 2006/10/31 23:16:16 mlhuang Exp $ +# $Id$ # +import os + class Config: """ Parses Python configuration files; all variables in the file are @@ -42,4 +47,6 @@ class Config: if __name__ == '__main__': from pprint import pprint - pprint(Config().__dict__.items()) + for (k,v) in Config().__dict__.iteritems(): + if k not in ['__builtins__']: + pprint ( (k,v), )