summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumanto Kar2025-06-20 03:17:34 +0530
committerGitHub2025-06-20 03:17:34 +0530
commit58e4c8bc1c1498cda2018d1144798817f2088e37 (patch)
tree8b45147d9bcc205a5e9ac464841868b5220657e6
parent4d8bc8db6809b8cd5f4ac323006034ed6806627b (diff)
downloadeSim-58e4c8bc1c1498cda2018d1144798817f2088e37.tar.gz
eSim-58e4c8bc1c1498cda2018d1144798817f2088e37.tar.bz2
eSim-58e4c8bc1c1498cda2018d1144798817f2088e37.zip
Made some path fixes to ltspiceToKicad.py
-rw-r--r--src/converter/ltspiceToKicad.py4
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)