<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">class MyUtilityClass:<br>
    def __init__(self, DataFilepath):<br>
        Resourcepath  = DataFilepath + ".rsc"<br>
        DataFileH     = open(DataFilepath)<br>
        ResourceFileH = open(Resourcepath)</blockquote><div><br>There's nothing wrong with this code. You have to look elsewhere in your program-- perhaps what calls it. Perhaps in the filesystem to ensure there really happens to be a rsc for this data file (maybe it got accidentally deleted?)<br>
<br>Before you do any openings, try printing like:<br><br>print repr(DataFilepath)<br>print repr(Resourcepath)<br>print os.path.exists(Resourcepath)<br>print os.listdir(os.dirname(Resourcepath))<br><br>Something must jump out at that point to be obviously the problem. If not and you still get a traceback, try mailing the list the output and the actual traceback.<br>
<br>--S<br></div></div><br>