Lines Matching refs:filename
18 def open(self, filename, action=None): argument
19 assert filename
20 filename = self.canonize(filename)
21 if os.path.isdir(filename):
25 "%r is a directory." % (filename,),
28 key = os.path.normcase(filename)
35 return action(filename)
37 edit = self.EditorWindow(self, filename, key)
44 def gotofileline(self, filename, lineno=None): argument
45 edit = self.open(filename)
49 def new(self, filename=None): argument
50 return self.EditorWindow(self, filename)
78 filename = edit.io.filename
79 if not filename:
84 filename = self.canonize(filename)
85 newkey = os.path.normcase(filename)
93 "You now have multiple edit windows open for %r" % (filename,),
103 def canonize(self, filename): argument
104 if not os.path.isabs(filename):
110 filename = os.path.join(pwd, filename)
111 return os.path.normpath(filename)
122 for filename in sys.argv[1:]:
123 flist.open(filename)