Lines Matching full:path
126 dir_or_file = os.path.expanduser(dir_or_file)
127 if os.path.isdir(dir_or_file):
130 self.directory, default = os.path.split(dir_or_file)
142 directory = os.path.dirname(self.how)
157 dir = os.path.normpath(os.path.join(self.directory, subdir))
186 fullname = os.path.join(dir, name)
187 if os.path.isdir(fullname):
197 head, tail = os.path.split(self.get_selection())
203 filter = os.path.expanduser(filter)
204 if filter[-1:] == os.sep or os.path.isdir(filter):
205 filter = os.path.join(filter, "*")
206 return os.path.split(filter)
210 file = os.path.expanduser(file)
217 if not os.path.isabs(dir):
223 dir = os.path.join(pwd, dir)
224 dir = os.path.normpath(dir)
226 self.filter.insert(END, os.path.join(dir or os.curdir, pat or "*"))
230 self.selection.insert(END, os.path.join(self.directory, file))
241 if not os.path.isfile(file):
255 if os.path.exists(file):
256 if os.path.isdir(file):
268 head, tail = os.path.split(file)
269 if not os.path.isdir(head):
316 # convert Tcl path objects to strings
322 path, file = os.path.split(result)
323 self.options["initialdir"] = path
342 path, file = os.path.split(result[0])
343 self.options["initialdir"] = path
366 # convert Tcl path objects to strings