Lines Matching refs:filename
17 def open(self, filename, action=None): argument
18 assert filename
19 filename = self.canonize(filename)
20 if os.path.isdir(filename):
24 "%r is a directory." % (filename,),
27 key = os.path.normcase(filename)
34 return action(filename)
36 return self.EditorWindow(self, filename, key)
38 def gotofileline(self, filename, lineno=None): argument
39 edit = self.open(filename)
43 def new(self, filename=None): argument
44 return self.EditorWindow(self, filename)
72 filename = edit.io.filename
73 if not filename:
78 filename = self.canonize(filename)
79 newkey = os.path.normcase(filename)
87 "You now have multiple edit windows open for %r" % (filename,),
97 def canonize(self, filename): argument
98 if not os.path.isabs(filename):
104 filename = os.path.join(pwd, filename)
105 return os.path.normpath(filename)
116 for filename in sys.argv[1:]:
117 flist.open(filename)