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

Function getuserbase

Lib/site.py:337–347  ·  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

335
336
337def getuserbase():
338 """Returns the `user base` directory path.
339
340 The `user base` directory can be used to store data. If the global
341 variable ``USER_BASE`` is not initialized yet, this function will also set
342 it.
343 """
344 global USER_BASE
345 if USER_BASE is None:
346 USER_BASE = _getuserbase()
347 return USER_BASE
348
349
350def getusersitepackages():

Callers 2

getusersitepackagesFunction · 0.85
_scriptFunction · 0.85

Calls 1

_getuserbaseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…