diff options
Diffstat (limited to 'src/converter/ltspiceToKicad.py')
-rw-r--r-- | src/converter/ltspiceToKicad.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/converter/ltspiceToKicad.py b/src/converter/ltspiceToKicad.py index e9715f7e..7ec696a5 100644 --- a/src/converter/ltspiceToKicad.py +++ b/src/converter/ltspiceToKicad.py @@ -44,9 +44,10 @@ class LTspiceConverter: # Construct the full path to parser.py parser_path = os.path.join(script_dir, relative_parser_path) - command = f"cd {conPath} && python3 {parser_path}/sch_LTspice2Kicad.py {file_name}" + command = command = ["python3", f"{parser_path}/sch_LTspice2Kicad.py", f"{filename}.asc"] + try: - subprocess.run(command, shell=True, check=True) + subprocess.run(command, check=True, cwd=conPath) # Message box with the conversion success message msg_box = QMessageBox() msg_box.setIcon(QMessageBox.Information) |