MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / __get_default_location

Method __get_default_location

suds/cache.py:301–313  ·  view source on GitHub ↗

Returns the current process's default cache location folder. The folder is determined lazily on first call.

()

Source from the content-addressed store, hash-verified

299
300 @staticmethod
301 def __get_default_location():
302 """
303 Returns the current process's default cache location folder.
304
305 The folder is determined lazily on first call.
306
307 """
308 if not FileCache.__default_location:
309 tmp = tempfile.mkdtemp("suds-default-cache")
310 FileCache.__default_location = tmp
311 import atexit
312 atexit.register(FileCache.__remove_default_location)
313 return FileCache.__default_location
314
315 @staticmethod
316 def __remove_default_location():

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected