Lines Matching refs:basename
42 dirname, basename = os.path.split(pathname)
44 for name in glob1(os.curdir, basename):
54 if has_magic(basename):
59 for name in glob_in_dir(dirname, basename):
64 # takes a literal basename (so it only has to check for its existence).
80 def glob0(dirname, basename):
81 if basename == '':
82 # `os.path.split()` returns an empty basename for paths ending with a
85 return [basename]
87 if os.path.lexists(os.path.join(dirname, basename)):
88 return [basename]