( sys_path )
| 36 | |
| 37 | |
| 38 | def 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 | |
| 45 | def PythonSysPath( **kwargs ): |