MCPcopy Index your code
hub / github.com/python/cpython / isxfile

Method isxfile

Lib/test/test_getpath.py:1017–1021  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

1015 return path in self._files and path.rpartition(".")[2] == "py".casefold()
1016
1017 def isxfile(self, path):
1018 if verbose:
1019 print("Check if", path, "is a executable")
1020 path = path.casefold()
1021 return path in self._files and path.rpartition(".")[2] == "exe".casefold()
1022
1023 def joinpath(self, *path):
1024 return ntpath.normpath(ntpath.join(*path))

Callers

nothing calls this directly

Calls 2

casefoldMethod · 0.80
rpartitionMethod · 0.45

Tested by

no test coverage detected