def _readPPN(self, fname, sldir):
if sldir.endswith(os.sep):<EOL><INDENT>fname = str(sldir)+str(fname)<EOL><DEDENT>else:<EOL><INDENT>fname = str(sldir)+os.sep+str(fname)<EOL>self.sldir+=os.sep<EOL><DEDENT>f=open(fname,'<STR_LIT:r>')<EOL>lines=f.readlines()<EOL>for i in range(len(lines)):<EOL><INDENT>lines[i]=lines[i].strip()<EOL><DEDENT>cols = ['<STR_LIT>', '<STR_LIT>'] <EOL>for i in range(len(lines)):<EOL><INDENT>if not lines[i].startswith('<STR_LIT:H>'):<EOL><INDENT>index = i-<NUM_LIT:1><EOL>break<EOL><DEDENT><DEDENT>return cols, index<EOL>
Private method that reads in and organizes the .ppn file
Loads the data of the .ppn file into the variable cols.