diff options
-rw-r--r-- | src/converter/ltspiceToKicad.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/converter/ltspiceToKicad.py b/src/converter/ltspiceToKicad.py index ad0596ee..e9715f7e 100644 --- a/src/converter/ltspiceToKicad.py +++ b/src/converter/ltspiceToKicad.py @@ -44,7 +44,7 @@ class LTspiceConverter: # Construct the full path to parser.py parser_path = os.path.join(script_dir, relative_parser_path) - command = f"cd {parser_path} && python3 sch_LTspice2Kicad.py {file_path}" + command = f"cd {conPath} && python3 {parser_path}/sch_LTspice2Kicad.py {file_name}" try: subprocess.run(command, shell=True, check=True) # Message box with the conversion success message @@ -139,4 +139,4 @@ def merge_copytree(src, dst, filename): merge_copytree(src_item, dst_item) else: if not os.path.exists(dst_item) or os.stat(src_item).st_mtime > os.stat(dst_item).st_mtime: - shutil.copy2(src_item, dst_item)
\ No newline at end of file + shutil.copy2(src_item, dst_item) |