src/wstool/config_yaml.py
def rewrite_included_source(source_path_specs, source_dir):
    """
    assumes source_path_specs is the contents of a config file in
    another directory source dir. It rewrites all elements, by changing
    any relative path relative to source dir and changing vcs
    types to non-vcs types types, to prevent two environments from
    conflicting
    """
    for index, pathspec in enumerate(source_path_specs):
        local_name = os.path.normpath(os.path.join(source_dir,
                                                   pathspec.get_local_name()))
        pathspec.set_local_name(local_name)
        if pathspec.get_path() is not None:
            path = os.path.normpath(
                os.path.join(source_dir, pathspec.get_path()))
            pathspec.set_path(path)
        pathspec.detach_vcs_info()
        source_path_specs[index] = pathspec
    return source_path_specs

    assumes source_path_specs is the contents of a config file in
    another directory source dir. It rewrites all elements, by changing
    any relative path relative to source dir and changing vcs
    types to non-vcs types types, to prevent two environments from
    conflicting
    
assumes source_path_specs is the contents of a config file in
another directory source dir. It rewrites all elements, by changing
any relative path relative to source dir and changing vcs
types to non-vcs types types, to prevent two environments from
conflicting
assumes source_path_specs is the contents of a config file in another directory source dir . It rewrites all elements by changing any relative path relative to source dir and changing vcs types to non - vcs types types to prevent two environments from conflicting
def rewrite_included_source(source_path_specs, source_dir):
    for index, pathspec in enumerate(source_path_specs):
        local_name = os.path.normpath(os.path.join(source_dir,
                                                   pathspec.get_local_name()))
        pathspec.set_local_name(local_name)
        if pathspec.get_path() is not None:
            path = os.path.normpath(
                os.path.join(source_dir, pathspec.get_path()))
            pathspec.set_path(path)
        pathspec.detach_vcs_info()
        source_path_specs[index] = pathspec
    return source_path_specs
def rewrite_included_source ( source_path_specs , source_dir ) : for index , pathspec in enumerate ( source_path_specs ) : local_name = os . path . normpath ( os . path . join ( source_dir , pathspec . get_local_name ( ) ) ) pathspec . set_local_name ( local_name ) if pathspec . get_path ( ) is not None : path = os . path . normpath ( os . path . join ( source_dir , pathspec . get_path ( ) ) ) pathspec . set_path ( path ) pathspec . detach_vcs_info ( ) source_path_specs [ index ] = pathspec return source_path_specs
assumes source_path_specs is the contents of a config file in
another directory source dir.
assumes source_path_specs is the contents of a config file in another directory source dir .
"""
    assumes source_path_specs is the contents of a config file in
    another directory source dir. It rewrites all elements, by changing
    any relative path relative to source dir and changing vcs
    types to non-vcs types types, to prevent two environments from
    conflicting
    """
source_path_specs
source_dir