From ddac0cbf1378351b311b9c985515c8664f6b93a7 Mon Sep 17 00:00:00 2001 From: Sumanto Kar Date: Mon, 23 Jun 2025 15:16:58 +0530 Subject: Added output path libConverter.py --- src/converter/libConverter.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/converter/libConverter.py b/src/converter/libConverter.py index 4ac4d354..eb725d8e 100644 --- a/src/converter/libConverter.py +++ b/src/converter/libConverter.py @@ -22,10 +22,13 @@ class PspiceLibConverter: # Construct the full path to libParser.py parser_path = os.path.join(script_dir, relative_parser_path) - print(parser_path) + print("Parser Path:",parser_path) # Prepare the command as a list - command = ["python3", "libParser.py", file_path] + # Get output path without extension (same directory as input) + output_base = os.path.splitext(file_path)[0] + + command = ["python3", "parser.py", file_path, output_base] print(f"Running command: {' '.join(command)} in directory: {parser_path}") try: -- cgit