def get_jars_full(adir):
    files = []
    if os.path.isdir(adir):
        files = os.listdir(adir)
    elif os.path.exists(adir):
        files = [adir]
    ret = []
    for f in files:
        if f.endswith('.jar'):
            ret.append(os.path.join(adir, f))
    return ret
def get_jars_full(adir):
    files = []
    if os.path.isdir(adir):
        files = os.listdir(adir)
    elif os.path.exists(adir):
        files = [adir]
    ret = []
    for f in files:
        if f.endswith('.jar'):
            ret.append(os.path.join(adir, f))
    return ret