From c03455a32f132a6d965c8c163f3926842d55959f Mon Sep 17 00:00:00 2001 From: Antonio Emmanuel Guerrero Silva Date: Wed, 13 Nov 2024 14:11:36 -0600 Subject: [PATCH] refs #1144 the call to variables from the language file is modified --- client/interfaceAdm/InventarioSoftware.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/interfaceAdm/InventarioSoftware.py b/client/interfaceAdm/InventarioSoftware.py index 37d729e..4c9c316 100755 --- a/client/interfaceAdm/InventarioSoftware.py +++ b/client/interfaceAdm/InventarioSoftware.py @@ -6,6 +6,7 @@ import sys sys.path.append('/opt/opengnsys/lib/engine/bin') import ogGlobals +import SystemLib def main(arg1, arg2, dest_file): start_time = time.time() @@ -20,9 +21,9 @@ def main(arg1, arg2, dest_file): with open(f"{og_log_command}.tmp", 'w') as f: f.write(" ") - msg_interface_start = os.getenv(ogGlobals.MSG_INTERFACE_START) + msg_interface_start = os.getenv(ogGlobals.lang.MSG_INTERFACE_START) if msg_interface_start: - subprocess.run(['ogEcho', 'log', 'session', f"{msg_interface_start} {__file__} {arg1} {arg2}"]) + SystemLib.ogEcho("log", "session", f"{msg_interface_start} {__file__} {arg1} {arg2}") try: result = subprocess.run( @@ -40,9 +41,9 @@ def main(arg1, arg2, dest_file): shutil.copy(file, dest_file) elapsed_time = time.time() - start_time - msg_scripts_time_partial = os.getenv('MSG_SCRIPTS_TIME_PARTIAL') + msg_scripts_time_partial = os.getenv(ogGlobals.lang.MSG_SCRIPTS_TIME_PARTIAL) if msg_scripts_time_partial: - subprocess.run(['ogEcho', 'log', 'session', f" [ ] {msg_scripts_time_partial} : {int(elapsed_time // 60)}m {int(elapsed_time % 60)}s"]) + SystemLib.ogEcho("log", "session", f" [ ] {msg_scripts_time_partial} : {int(elapsed_time // 60)}m {int(elapsed_time % 60)}s") if __name__ == "__main__": if len(sys.argv) != 4: