Lines Matching refs:path
29 def is_browseable_extension(path):
30 _, ext = os.path.splitext(path)
31 ext = os.path.normcase(ext)
74 def __init__(self, master, path, *, _htest=False, _utest=False):
79 path: full path of file to browse.
88 file: Full path and module with supported extension.
93 self.path = path
136 self.top.wm_title("Module Browser - " + os.path.basename(self.path))
141 return ModuleBrowserTreeItem(self.path)
155 file: Full path and module name.
161 return os.path.basename(self.file)
175 if not os.path.exists(self.file):
187 dir, base = os.path.split(self.file)
188 name, _ = os.path.splitext(base)
190 tree = pyclbr.readmodule_ex(name, [dir] + sys.path)