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

Function getuserbase

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

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

Callers 2

getusersitepackagesFunction · 0.85
_scriptFunction · 0.85

Calls 1

_getuserbaseFunction · 0.70

Tested by

no test coverage detected