Lines Matching refs:filename
59 filename = self.getfilename()
60 if not filename:
62 if not self.checksyntax(filename):
64 if not self.tabnanny(filename):
67 def tabnanny(self, filename): argument
69 with tokenize.open(filename) as f:
85 def checksyntax(self, filename): argument
89 with open(filename, 'rb') as f:
101 return compile(source, filename, "exec")
137 filename = self.getfilename()
138 if not filename:
140 code = self.checksyntax(filename)
143 if not self.tabnanny(filename):
147 interp.restart_subprocess(with_cwd=False, filename=
148 self.editwin._filename_to_unicode(filename))
149 dirname = os.path.dirname(filename)
161 \n""".format(filename=filename, dirname=dirname))
162 interp.prepend_syspath(filename)
180 filename = self.editwin.io.filename
184 if autosave and filename:
191 filename = self.editwin.io.filename
193 filename = None
194 return filename