def sysappend(pkg):
    lines = []
    if type(pkg) is list:
        lines = pkg
    else:
        print >>sys.stderr, '%s should be list type.' % (pkg,)
        return False
        
    for line in lines:
        f = False
        for path in sys.path:
            if line == path:
                f = True
                break
        if f is False:
            sys.path.insert(1, line)
    return True
dataset/ETHPy150Open karesansui/pysilhouette/pysilhouette/prep.py/sysappend/original