( **kwargs )
| 43 | |
| 44 | |
| 45 | def PythonSysPath( **kwargs ): |
| 46 | sys_path = kwargs[ 'sys_path' ] |
| 47 | |
| 48 | dependencies = [ p.join( DIR_OF_THIS_SCRIPT, 'python' ), |
| 49 | p.join( DIR_OF_THIRD_PARTY, 'requests-futures' ), |
| 50 | p.join( DIR_OF_THIRD_PARTY, 'ycmd' ), |
| 51 | p.join( DIR_OF_THIRD_PARTY, 'requests_deps', 'idna' ), |
| 52 | p.join( DIR_OF_THIRD_PARTY, 'requests_deps', 'chardet' ), |
| 53 | p.join( DIR_OF_THIRD_PARTY, |
| 54 | 'requests_deps', |
| 55 | 'urllib3', |
| 56 | 'src' ), |
| 57 | p.join( DIR_OF_THIRD_PARTY, 'requests_deps', 'certifi' ), |
| 58 | p.join( DIR_OF_THIRD_PARTY, 'requests_deps', 'requests' ) ] |
| 59 | |
| 60 | # The concurrent.futures module is part of the standard library on Python 3. |
| 61 | interpreter_path = kwargs[ 'interpreter_path' ] |
| 62 | major_version = int( subprocess.check_output( [ |
| 63 | interpreter_path, '-c', 'import sys; print( sys.version_info[ 0 ] )' ] |
| 64 | ).rstrip().decode( 'utf8' ) ) |
| 65 | if major_version == 2: |
| 66 | dependencies.append( p.join( DIR_OF_THIRD_PARTY, 'pythonfutures' ) ) |
| 67 | |
| 68 | sys_path[ 0:0 ] = dependencies |
| 69 | sys_path.insert( GetStandardLibraryIndexInSysPath( sys_path ) + 1, |
| 70 | p.join( DIR_OF_THIRD_PARTY, 'python-future', 'src' ) ) |
| 71 | |
| 72 | return sys_path |
nothing calls this directly
no test coverage detected