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

Function ispath

Lib/pydoc.py:2711–2712  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

2709# -------------------------------------------------- command-line interface
2710
2711def ispath(x):
2712 return isinstance(x, str) and x.find(os.sep) >= 0
2713
2714def _get_revised_path(given_path, argv0):
2715 """Ensures current directory is on returned path, and argv0 directory is not

Callers 1

cliFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…