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

Function GetStandardLibraryIndexInSysPath

.ycm_extra_conf.py:38–42  ·  view source on GitHub ↗
( sys_path )

Source from the content-addressed store, hash-verified

36
37
38def GetStandardLibraryIndexInSysPath( sys_path ):
39 for index, path in enumerate( sys_path ):
40 if p.isfile( p.join( path, 'os.py' ) ):
41 return index
42 raise RuntimeError( 'Could not find standard library path in Python path.' )
43
44
45def PythonSysPath( **kwargs ):

Callers 1

PythonSysPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected