MCPcopy Index your code
hub / github.com/kivy/python-for-android / temp_directory

Function temp_directory

pythonforandroid/util.py:39–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38@contextlib.contextmanager
39def temp_directory():
40 temp_dir = mkdtemp()
41 try:
42 logger.debug(''.join((Err_Fore.CYAN, ' + temp directory used ',
43 temp_dir, Err_Fore.RESET)))
44 yield temp_dir
45 finally:
46 shutil.rmtree(temp_dir)
47 logger.debug(''.join((Err_Fore.CYAN, ' - temp directory deleted ',
48 temp_dir, Err_Fore.RESET)))
49
50
51def walk_valid_filens(base_dir, invalid_dir_names, invalid_file_patterns, excluded_dir_exceptions=None):

Callers 1

_unpack_aarMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected