diff options
Diffstat (limited to 'src/projManagement')
-rw-r--r-- | src/projManagement/Kicad.py | 25 | ||||
-rw-r--r-- | src/projManagement/Kicad.pyc | bin | 5337 -> 5551 bytes |
2 files changed, 17 insertions, 8 deletions
diff --git a/src/projManagement/Kicad.py b/src/projManagement/Kicad.py index aa4ba8eb..a1873555 100644 --- a/src/projManagement/Kicad.py +++ b/src/projManagement/Kicad.py @@ -148,19 +148,28 @@ class Kicad: self.cmd = "xterm -e ngspice "+self.project+".cir.out" proc = subprocess.Popen(self.cmd.split()) - proc.communicate()[0] + self.obj_appconfig.procThread_list.append(proc) - #Moving plot_data_i.txt and plot_data_v.txt to project directory - shutil.copy2("plot_data_i.txt", self.projDir) - shutil.copy2("plot_data_v.txt", self.projDir) - #Deleting this file from current directory - os.remove("plot_data_i.txt") - os.remove("plot_data_v.txt") + sleep(2) #Need permanent solution + try: + #Moving plot_data_i.txt and plot_data_v.txt to project directory + shutil.copy2("plot_data_i.txt", self.projDir) + shutil.copy2("plot_data_v.txt", self.projDir) + #Deleting this file from current directory + os.remove("plot_data_i.txt") + os.remove("plot_data_v.txt") + except Exception as e: + self.msg = QtGui.QErrorMessage(None) + self.msg.showMessage('Unable to copy plot data file to project directory.') + print "Exception:",str(e) + self.msg.setWindowTitle("Error Message") + return False + return True else: self.msg = QtGui.QErrorMessage(None) self.msg.showMessage('Please select the project first. You can either create new project or open existing project') self.msg.setWindowTitle("Error Message") - return False
\ No newline at end of file + #return False
\ No newline at end of file diff --git a/src/projManagement/Kicad.pyc b/src/projManagement/Kicad.pyc Binary files differindex f805c100..bf6ccb75 100644 --- a/src/projManagement/Kicad.pyc +++ b/src/projManagement/Kicad.pyc |