File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments