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

Function getuserbase

tools/python-3.11.9-amd64/Lib/site.py:311–321  ·  view source on GitHub ↗

Returns the `user base` directory path. The `user base` directory can be used to store data. If the global variable ``USER_BASE`` is not initialized yet, this function will also set it.

()

Source from the content-addressed store, hash-verified

309
310
311def getuserbase():
312 """Returns the `user base` directory path.
313
314 The `user base` directory can be used to store data. If the global
315 variable ``USER_BASE`` is not initialized yet, this function will also set
316 it.
317 """
318 global USER_BASE
319 if USER_BASE is None:
320 USER_BASE = _getuserbase()
321 return USER_BASE
322
323
324def getusersitepackages():

Callers 2

getusersitepackagesFunction · 0.85
_scriptFunction · 0.85

Calls 1

_getuserbaseFunction · 0.70

Tested by

no test coverage detected