Skip to content

Commit edead19

Browse files
committed
refactor: uncomment file-based communication logic in main function for clarity and future implementation
1 parent aa7c0e4 commit edead19

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

evaluation_function/main.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ def main():
105105
- If 2+ args provided: File-based communication (last 2 args are input/output paths)
106106
- Otherwise: RPC/IPC server mode using lf_toolkit
107107
"""
108-
# # Check for file-based communication
109-
# # shimmy passes input and output file paths as the last two arguments
110-
# if len(sys.argv) >= 3:
111-
# input_path = sys.argv[-2]
112-
# output_path = sys.argv[-1]
108+
# Check for file-based communication
109+
# shimmy passes input and output file paths as the last two arguments
110+
if len(sys.argv) >= 3:
111+
input_path = sys.argv[-2]
112+
output_path = sys.argv[-1]
113113

114-
# # Verify they look like file paths (basic check)
115-
# if not input_path.startswith('-') and not output_path.startswith('-'):
116-
# handle_file_based_communication(input_path, output_path)
117-
# return
114+
# Verify they look like file paths (basic check)
115+
if not input_path.startswith('-') and not output_path.startswith('-'):
116+
handle_file_based_communication(input_path, output_path)
117+
return
118118

119119
# Fall back to RPC/IPC server mode
120120
server = create_server()

0 commit comments

Comments
 (0)