(pythonpath)
Changes the pythonpath (clears all the previous pythonpath)

    @param pythonpath: string with paths separated by |
Changes the pythonpath (clears all the previous pythonpath)
Changes the pythonpath ( clears all the previous pythonpath )
def change_python_path(pythonpath):
    '''Changes the pythonpath (clears all the previous pythonpath)

    @param pythonpath: string with paths separated by |
    '''

    split = pythonpath.split('|')
    sys.path = []
    for path in split:
        path = path.strip()
        if len(path) > 0:
            sys.path.append(path)
def change_python_path ( pythonpath ) : split = pythonpath . split ( '|' ) sys . path = [ ] for path in split : path = path . strip ( ) if len ( path ) > 0 : sys . path . append ( path )