refs #1144 rebuild ogGetGroupName

pull/1/head
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.
#*/
def ogGetGroupName():
if len(sys.argv) >= 2 and sys.argv[1] == "help":
SystemLib.ogHelp("ogGetGroupName", "ogGetGroupName", "ogGetGroupName => Grupo1")
return
if "group" in globals() and group:
print(group)
return 0
try:
group = globals().get("group", None)
return group if group else None
except Exception as e:
print(f"Error in ogGetGroupName: {e}")
return None
#/**