refs #1144 rebuild ogGetGroupName

code-review
Antonio Guerrero 2024-11-13 22:11:57 -06:00
parent ea5114a897
commit 976b6367f3
1 changed files with 6 additions and 8 deletions

View File

@ -106,14 +106,12 @@ def ogGetGroupDir():
#@return str_group - Nombre de grupo. #@return str_group - Nombre de grupo.
#*/ #*/
def ogGetGroupName(): def ogGetGroupName():
if len(sys.argv) >= 2 and sys.argv[1] == "help": try:
SystemLib.ogHelp("ogGetGroupName", "ogGetGroupName", "ogGetGroupName => Grupo1") group = globals().get("group", None)
return return group if group else None
except Exception as e:
if "group" in globals() and group: print(f"Error in ogGetGroupName: {e}")
print(group) return None
return 0
#/** #/**