[Yt-svn] yt: Fixing bug where "yt" section did not exist if ~/.yt/config...
hg at spacepope.org
hg at spacepope.org
Mon Nov 22 06:06:04 PST 2010
hg Repository: yt
details: yt/rev/9ee32ec8db42
changeset: 3552:9ee32ec8db42
user: Matthew Turk <matthewturk at gmail.com>
date:
Mon Nov 22 08:45:58 2010 -0500
description:
Fixing bug where "yt" section did not exist if ~/.yt/config didn't exist.
diffstat:
yt/config.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 34dc6bf24057 -r 9ee32ec8db42 yt/config.py
--- a/yt/config.py Sun Nov 21 20:58:37 2010 -0500
+++ b/yt/config.py Mon Nov 22 08:45:58 2010 -0500
@@ -86,6 +86,8 @@
else:
ytcfg = ConfigParser.ConfigParser(ytcfgDefaults)
ytcfg.read(['yt.cfg'])
+if not ytcfg.has_section("yt"):
+ ytcfg.add_section("yt")
# Now we have parsed the config file. Overrides come from the command line.
More information about the yt-svn
mailing list