MCPcopy Index your code
hub / github.com/RustPython/RustPython / ispath

Function ispath

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

Source from the content-addressed store, hash-verified

2757# -------------------------------------------------- command-line interface
2758
2759def ispath(x):
2760 return isinstance(x, str) and x.find(os.sep) >= 0
2761
2762def _get_revised_path(given_path, argv0):
2763 """Ensures current directory is on returned path, and argv0 directory is not

Callers 1

cliFunction · 0.85

Calls 2

isinstanceFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected