summaryrefslogtreecommitdiff
path: root/src/projManagement/Kicad.py
diff options
context:
space:
mode:
authorPSR00012023-06-18 09:23:18 +0530
committerPSR00012023-06-18 09:23:18 +0530
commit37b8373b81177436c272f009f3f10a0bb621af81 (patch)
treeeae736122781b8cf1ba2329e751336ab4b0e71d0 /src/projManagement/Kicad.py
parent5677d6b61acff4f2f4b3c752fe51f9b8350fb14a (diff)
downloadeSim-37b8373b81177436c272f009f3f10a0bb621af81.tar.gz
eSim-37b8373b81177436c272f009f3f10a0bb621af81.tar.bz2
eSim-37b8373b81177436c272f009f3f10a0bb621af81.zip
Opening older schematics
Diffstat (limited to 'src/projManagement/Kicad.py')
-rw-r--r--src/projManagement/Kicad.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/projManagement/Kicad.py b/src/projManagement/Kicad.py
index 8c92c06b..16569d80 100644
--- a/src/projManagement/Kicad.py
+++ b/src/projManagement/Kicad.py
@@ -86,7 +86,13 @@ class Kicad:
self.project = os.path.join(self.projDir, self.projName)
# Creating a command to run
- self.cmd = "eeschema " + self.project + ".sch "
+ if os.path.exists(self.project + ".kicad_sch"):
+ self.cmd = "eeschema " + self.project + ".kicad_sch" #kicad v6 file
+ elif os.path.exists(self.project + ".sch"):
+ self.cmd = "eeschema " + self.project + ".sch" #kicad v4 file
+ else:
+ self.cmd = "eeschema " + self.project + ".kicad_sch"
+
self.obj_workThread.args = self.cmd
self.obj_workThread.start()