Lines Matching refs:filename
61 filename = self.getfilename()
62 if not filename:
64 if not self.checksyntax(filename):
66 if not self.tabnanny(filename):
69 def tabnanny(self, filename): argument
70 f = open(filename, 'r')
86 def checksyntax(self, filename): argument
90 with open(filename, 'r') as f:
102 return compile(source, filename, "exec")
107 err.args = msg, (filename, lineno, offset, line)
108 err.filename = filename
140 filename = self.getfilename()
141 if not filename:
143 code = self.checksyntax(filename)
146 if not self.tabnanny(filename):
150 interp.restart_subprocess(with_cwd=False, filename=code.co_filename)
151 dirname = os.path.dirname(filename)
163 \n""".format(filename=filename, dirname=dirname))
164 interp.prepend_syspath(filename)
195 filename = self.editwin.io.filename
199 if autosave and filename:
206 filename = self.editwin.io.filename
208 filename = None
209 return filename