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.
()
| 338 | |
| 339 | |
| 340 | def 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 | |
| 353 | def getusersitepackages(): |
no test coverage detected