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.
()
| 335 | |
| 336 | |
| 337 | def 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 | |
| 350 | def getusersitepackages(): |
no test coverage detected
searching dependent graphs…