kolibri/utils/env.py
def prepend_cext_path(dist_path):
    """
    Calculate the directory of C extensions and add it to sys.path if exists.
    """
    python_version = "cp" + str(sys.version_info.major) + str(sys.version_info.minor)
    system_name = platform.system()
    machine_name = platform.machine()
    dirname = os.path.join(dist_path, "cext", python_version, system_name)

    # For Linux system with cpython<3.3, there could be abi tags 'm' and 'mu'
    if system_name == "Linux" and int(python_version[2:]) < 33:
        # encode with ucs2
        if sys.maxunicode == 65535:
            dirname = os.path.join(dirname, python_version + "m")
        # encode with ucs4
        else:
            dirname = os.path.join(dirname, python_version + "mu")

    dirname = os.path.join(dirname, machine_name)
    noarch_dir = os.path.join(dist_path, "cext")
    if os.path.exists(dirname):
        # If the directory of platform-specific cextensions (cryptography) exists,
        # add it + the matching noarch (OpenSSL) modules to sys.path
        sys.path = [str(dirname), str(noarch_dir)] + sys.path
    else:
        logging.warning("No C Extensions available for this platform.\n")

    Calculate the directory of C extensions and add it to sys.path if exists.
    
Calculate the directory of C extensions and add it to sys.path if exists.
Calculate the directory of C extensions and add it to sys . path if exists .
def prepend_cext_path(dist_path):
    python_version = "cp" + str(sys.version_info.major) + str(sys.version_info.minor)
    system_name = platform.system()
    machine_name = platform.machine()
    dirname = os.path.join(dist_path, "cext", python_version, system_name)
    if system_name == "Linux" and int(python_version[2:]) < 33:
        if sys.maxunicode == 65535:
            dirname = os.path.join(dirname, python_version + "m")
        else:
            dirname = os.path.join(dirname, python_version + "mu")
    dirname = os.path.join(dirname, machine_name)
    noarch_dir = os.path.join(dist_path, "cext")
    if os.path.exists(dirname):
        sys.path = [str(dirname), str(noarch_dir)] + sys.path
    else:
        logging.warning("No C Extensions available for this platform.\n")
def prepend_cext_path ( dist_path ) : python_version = "cp" + str ( sys . version_info . major ) + str ( sys . version_info . minor ) system_name = platform . system ( ) machine_name = platform . machine ( ) dirname = os . path . join ( dist_path , "cext" , python_version , system_name ) if system_name == "Linux" and int ( python_version [ 2 : ] ) < 33 : if sys . maxunicode == 65535 : dirname = os . path . join ( dirname , python_version + "m" ) else : dirname = os . path . join ( dirname , python_version + "mu" ) dirname = os . path . join ( dirname , machine_name ) noarch_dir = os . path . join ( dist_path , "cext" ) if os . path . exists ( dirname ) : sys . path = [ str ( dirname ) , str ( noarch_dir ) ] + sys . path else : logging . warning ( "No C Extensions available for this platform.\n" )
Calculate the directory of C extensions and add it to sys.path if exists.
Calculate the directory of C extensions and add it to sys . path if exists .
"""
    Calculate the directory of C extensions and add it to sys.path if exists.
    """ # For Linux system with cpython<3.3, there could be abi tags 'm' and 'mu' # encode with ucs2 # encode with ucs4 # If the directory of platform-specific cextensions (cryptography) exists, # add it + the matching noarch (OpenSSL) modules to sys.path
dist_path