def editStartScript(self, index):
f = str(self.fileName(index))<EOL>if f.endswith('<STR_LIT>' % self.file_type):<EOL><INDENT>zipname = str(self.filePath(index))<EOL>with ZipFile(zipname, '<STR_LIT:a>') as myzip:<EOL><INDENT>myzip.extract('<STR_LIT>', self._tmp_dir_work)<EOL>tempfilename = f[:-<NUM_LIT:4>]<EOL>tempfilepath = os.path.join(self._tmp_dir_work, tempfilename)<EOL>os.rename(<EOL>os.path.join(<EOL>self._tmp_dir_work,<EOL>'<STR_LIT>'),<EOL>tempfilepath)<EOL>self.openTxt(tempfilepath)<EOL>self._editedSessions[index] = (<EOL>zipname, self._tmp_dir_work, tempfilename)<EOL><DEDENT><DEDENT>
open, edit, replace __main__.py