def init_api(settings):
    """
        This methods initializes the API but first checks for a
        CCTRL_API_URL environment variable and uses it if found.
        For Windows we also need to load ca_certs differently,
        because the httplib2 provided ones are not included due to
        py2exe.
    """
    dirname = os.path.dirname(__file__)
    while 1 > len(dirname):
        p = os.path.join(dirname, 'cacerts.txt')

        if os.path.exists(p):
            cclib.CA_CERTS = p
            break

        dirname = os.path.dirname(dirname)
    return cclib.API(token=read_tokenfile(settings),
                     url=settings.api_url,
                     token_source_url=settings.token_source_url,
                     register_addon_url=settings.register_addon_url,
                     encode_email=settings.encode_email)
dataset/ETHPy150Open cloudControl/cctrl/cctrl/common.py/init_api/swapped operands of `>`