running ability improved

This commit is contained in:
Jun-te Kim 2025-03-08 10:09:57 +00:00
parent 5fe5063254
commit 392acf5a73

View file

@ -38,13 +38,13 @@ def main():
def print_hello():
print("hello man")
# def create_temp_file(dict_content):
# with tempfile.NamedTemporaryFile(mode='w+', delete=False, suffix='.txt') as temp_file:
# formatted_content = pformat(dict_content)
# temp_file.write(formatted_content + "\n")
# temp_file_path = temp_file.name
def create_temp_file(dict_content):
with tempfile.NamedTemporaryFile(mode='w+', delete=False, suffix='.txt') as temp_file:
formatted_content = pformat(dict_content)
temp_file.write(formatted_content + "\n")
temp_file_path = temp_file.name
# logger.info(f"Temporary file created at: {temp_file_path}")
logger.info(f"Temporary file created at: {temp_file_path}")
if __name__ == "__main__":