def gid_to_group(gid):
    try:
        gid = int(gid)
    except ValueError:
        # This is not an integer, maybe it's already the group name?
        gid = group_to_gid(gid)

    if gid == '':
        # Don't even bother to feed it to grp
        return ''

    try:
        return grp.getgrgid(gid).gr_name
    except (KeyError, NameError):
        # If group is not present, fall back to the gid.
        return gid
Select which version of Visual Studio projects to generate.
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/gid_to_group--crossover with--dataset/ETHPy150Open adobe/brackets-shell/gyp/pylib/gyp/MSVSVersion.py/SelectVisualStudioVersion