def get_python_doc_path():
 if (os.name == 'nt'):
  doc_path = osp.join(sys.prefix, 'Doc')
  if (not osp.isdir(doc_path)):
   return
  python_chm = [path for path in os.listdir(doc_path) if re.match('(?i)Python[0-9]{3,6}.chm', path)]
  if python_chm:
   return file_uri(osp.join(doc_path, python_chm[0]))
 else:
  vinf = sys.version_info
  doc_path = ('/usr/share/doc/python%d.%d/html' % (vinf[0], vinf[1]))
 python_doc = osp.join(doc_path, 'index.html')
 if osp.isfile(python_doc):
  return file_uri(python_doc)

def get_python_doc_path ( ) : if ( os . name == 'nt' ) : doc_path = osp . join ( sys . prefix , 'Doc' ) if ( not osp . isdir ( doc_path ) ) : return python_chm = [ path for path in os . listdir ( doc_path ) if re . match ( '(?i)Python[0-9]{3,6}.chm' , path ) ] if python_chm : return file_uri ( osp . join ( doc_path , python_chm [ 0 ] ) ) else : vinf = sys . version_info doc_path = ( '/usr/share/doc/python%d.%d/html' % ( vinf [ 0 ] , vinf [ 1 ] ) ) python_doc = osp . join ( doc_path , 'index.html' ) if osp . isfile ( python_doc ) : return file_uri ( python_doc )
return python documentation path .