MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / ispath

Function ispath

tools/python-3.11.9-amd64/Lib/pydoc.py:2807–2808  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

2805# -------------------------------------------------- command-line interface
2806
2807def ispath(x):
2808 return isinstance(x, str) and x.find(os.sep) >= 0
2809
2810def _get_revised_path(given_path, argv0):
2811 """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