MCPcopy Create free account
hub / github.com/ycm-core/YouCompleteMe / CurrentWorkingDirectory

Function CurrentWorkingDirectory

python/ycm/tests/test_utils.py:116–122  ·  view source on GitHub ↗
( path )

Source from the content-addressed store, hash-verified

114
115@contextlib.contextmanager
116def CurrentWorkingDirectory( path ):
117 old_cwd = GetCurrentDirectory()
118 os.chdir( path )
119 try:
120 yield
121 finally:
122 os.chdir( old_cwd )
123
124
125def _MockGetBufferNumber( buffer_filename ):

Calls

no outgoing calls

Tested by

no test coverage detected