[Nini-general] Bug in getExpanded() when expanding the same key in different sections
Brought to you by:
bmatzelle
From: Digital F. <tdf...@gm...> - 2009-06-09 13:00:07
|
Hello avid Nini users, Consider the following INI file contents: [Vars] OutDir=c:\test [Rule1] SourceDir=${Vars|OutDir}\rule1 [Rule2] SourceDir=${Vars|OutDir}\rule2 If I want to expand the key SourceDir in Rule1, then Rule2 (order doesn't matter) using the getExpanded() method, then an exception is thrown with "Key not found: OutDir". It works fine if I expand the key in either section, but not both. My workound was to instatiate an IniConfigSource object and call the ExpandKeyValues() method, then everything worked fine. Am I doing something wrong, or is this a known issue? Has someone else experienced this as well? Thanks! -Marc |