parameters: (pyver, num)
docstring: Look for the position in the sys.path of the std library zip file
      and move the last num items to that position. This puts us before
      the stock paths, but after any PYTHONPATH settings or eggs.
docstring_summary: Look for the position in the sys.path of the std library zip file
      and move the last num items to that position. This puts us before
      the stock paths, but after any PYTHONPATH settings or eggs.
docstring_tokens: Look for the position in the sys . path of the std library zip file and move the last num items to that position . This puts us before the stock paths but after any PYTHONPATH settings or eggs .
function: def fixpath(pyver, num):
      """
      Look for the position in the sys.path of the std library zip file
      and move the last num items to that position. This puts us before
      the stock paths, but after any PYTHONPATH settings or eggs.
      """
      global _pathFixed
      if _pathFixed:
          return
      _pathFixed = True
      
      if '.' in pyver:
          pyver = ''.join(pyver.split('.'))
      tail = 'python%s.zip' % pyver
      pos = [i for i,v in enumerate(sys.path) if v.endswith(tail)]
      if not pos:
          pos = 0
      else:
          pos = pos[0]
      sys.path[pos:pos] = sys.path[-num:]
      del sys.path[-num:]
function_tokens: def fixpath ( pyver , num ) : global _pathFixed if _pathFixed : return _pathFixed = True if '.' in pyver : pyver = '' . join ( pyver . split ( '.' ) ) tail = 'python%s.zip' % pyver pos = [ i for i , v in enumerate ( sys . path ) if v . endswith ( tail ) ] if not pos : pos = 0 else : pos = pos [ 0 ] sys . path [ pos : pos ] = sys . path [ - num : ] del sys . path [ - num : ]