Lines Matching refs:path
13 Subclass HelpSource gets menu item and path for additions to Help menu.
197 "Return entered module name as file path or None."
202 # XXX Ought to insert current file's directory in front of path.
220 # Some special modules require this (e.g. os.path)
263 "Add path widjets to rows 10-12."
268 self.path = Entry(frame, textvariable=self.pathvar, width=40)
276 self.path.grid(column=0, row=11, columnspan=2, padx=5, sticky=W+E,
296 path = self.pathvar.get()
297 if path:
298 dir, base = os.path.split(path)
302 dir = os.path.join(os.path.dirname(executable), 'Doc')
303 if not os.path.isdir(dir):
314 "Simple validity check for menu file path"
315 path = self.path.get().strip()
316 if not path: #no path specified
317 self.showerror('no help file path specified.', self.path_error)
319 elif not path.startswith(('www.', 'http')):
320 if path[:5] == 'file:':
321 path = path[5:]
322 if not os.path.exists(path):
323 self.showerror('help file path does not exist.',
327 path = "file://" + path
328 return path
331 "Return apparently valid (name, path) or None"
334 path = self.path_ok()
335 return None if name is None or path is None else (name, path)