(self, path=None)
return [path + ' ']
Perform completion of filesystem path.
Perform completion of filesystem path.
Perform completion of filesystem path .
def _complete_path(self, path=None):
		"Perform completion of filesystem path."
		if not path:
			return os.listdir('.')
		dirname, rest = os.path.split(path)
		tmp = dirname if dirname else '.'
		res = [os.path.join(dirname, p)
				for p in os.listdir(tmp) if p.startswith(rest)]
		# more than one match, or single match which does not exist (typo)
		if len(res) > 1 or not os.path.exists(path):
			return res
		# resolved to a single directory, so return list of files below it
		if os.path.isdir(path):
			return [os.path.join(path, p) for p in os.listdir(path)]
		# exact file match terminates this completion
		return [path + ' ']
def _complete_path ( self , path = None ) : if not path : return os . listdir ( '.' ) dirname , rest = os . path . split ( path ) tmp = dirname if dirname else '.' res = [ os . path . join ( dirname , p ) for p in os . listdir ( tmp ) if p . startswith ( rest ) ] # more than one match, or single match which does not exist (typo) if len ( res ) > 1 or not os . path . exists ( path ) : return res # resolved to a single directory, so return list of files below it if os . path . isdir ( path ) : return [ os . path . join ( path , p ) for p in os . listdir ( path ) ] # exact file match terminates this completion return [ path + ' ' ]