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

Function exists

tools/python-3.11.9-amd64/Lib/site.py:651–655  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

649 print(" %r," % (dir,))
650 print("]")
651 def exists(path):
652 if path is not None and os.path.isdir(path):
653 return "exists"
654 else:
655 return "doesn't exist"
656 print(f"USER_BASE: {user_base!r} ({exists(user_base)})")
657 print(f"USER_SITE: {user_site!r} ({exists(user_site)})")
658 print(f"ENABLE_USER_SITE: {ENABLE_USER_SITE!r}")

Callers 1

_scriptFunction · 0.70

Calls 1

isdirMethod · 0.45

Tested by

no test coverage detected