@staticmethod
def construct_id_from_path(subdir, name, type_suffix):
    'Construct target ID from subdir, name and type suffix.\n\n        This helper function is made public mostly for tests.'
    name_part = name.replace('/', '@').replace('\\', '@')
    assert (not has_path_sep(type_suffix))
    my_id = (name_part + type_suffix)
    if subdir:
        subdir_part = Target._get_id_hash(subdir)
        return ((subdir_part + '@@') + my_id)
    return my_id
Construct target ID from subdir, name and type suffix.

This helper function is made public mostly for tests.
@staticmethod
def construct_id_from_path(subdir, name, type_suffix):
    'Construct target ID from subdir, name and type suffix.\n\n        This helper function is made public mostly for tests.'
    name_part = name.replace('/', '@').replace('\\', '@')
    assert (not has_path_sep(type_suffix))
    my_id = (name_part + type_suffix)
    if subdir:
        subdir_part = Target._get_id_hash(subdir)
        return ((subdir_part + '@@') + my_id)
    return my_id