def load(jar):
    def _load(abspath):
        if os.path.exists(abspath):
            if not sys.path in abspath:
                sys.path.append(abspath)
            return True
        return False

    if _load(jar):
        return True
    path = getBundlePath()
    if path:
        jarInBundle = os.path.join(path, jar)
        if _load(jarInBundle):
            return True
    path = ExtensionManager.getInstance().getLoadPath(jar)
    if path and _load(path):
        return True
    return False

##
# append the given path sys.path if not yet contained
#
dataset/ETHPy150Open azoft-dev-team/imagrium/jars/Lib/sikuli/Sikuli.py/load/swapped operands of `in`