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.
()
| 309 | |
| 310 | |
| 311 | def 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 | |
| 324 | def getusersitepackages(): |
no test coverage detected