<div>Hi all,</div><div><br></div><div>I am trying to get the some configuration file read in by Python, however, after the read command it return a list with the filename that I passed in. what is going on?</div><div><br></div>
<div>Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51) </div><div>[GCC 4.2.1 (Apple Inc. build 5646)] on darwin</div><div>Type "help", "copyright", "credits" or "license" for more information.</div>
<div>>>> import ConfigParser</div><div>>>> p = ConfigParser.SafeConfigParser()</div><div>>>> cfg = p.read("S3Files.conf")</div><div>>>> cfg</div><div>['S3Files.conf']</div>
<div><br></div><div><br></div><div> cat S3Files.conf </div><div><div>[main]</div><div>taskName=FileConfigDriver</div><div>lastProcessed=2010-01-31</div><div>dateFromat=%Y-%m-%d</div><div>skippingValue=86400</div><div>skippingInterval=seconds</div>
<div><br></div><div>Thanks in advance.</div><div><br></div></div><div><br></div><div><br></div>