code: def get_stdlib_path():
      
      if sys.version_info >= (2, 7):
          import sysconfig
          return sysconfig.get_paths()['stdlib']
      else:
          return os.path.join(sys.prefix, 'lib')
docs: Returns the path to the standard lib for the current path installation.
  
      This function can be dropped and "sysconfig.get_paths()" used directly once Python 2.6 support is dropped.