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

Function current_directory

pythonforandroid/util.py:27–35  ·  view source on GitHub ↗
(new_dir)

Source from the content-addressed store, hash-verified

25
26@contextlib.contextmanager
27def current_directory(new_dir):
28 cur_dir = getcwd()
29 logger.info(''.join((Err_Fore.CYAN, '-> directory context ', new_dir,
30 Err_Fore.RESET)))
31 chdir(new_dir)
32 yield
33 logger.info(''.join((Err_Fore.CYAN, '<- directory context ', cur_dir,
34 Err_Fore.RESET)))
35 chdir(cur_dir)
36
37
38@contextlib.contextmanager

Callers 15

prepare_build_dirMethod · 0.90
assemble_distributionMethod · 0.90
run_setuppy_installFunction · 0.90
run_pymodules_installFunction · 0.90
biglinkFunction · 0.90
download_fileMethod · 0.90
downloadMethod · 0.90
unpackMethod · 0.90
build_archMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected