summaryrefslogtreecommitdiff
path: root/src/frontEnd/Application.py
diff options
context:
space:
mode:
authorfahim2015-06-02 14:55:09 +0530
committerfahim2015-06-02 14:55:09 +0530
commitcc2082a63d52bf7181902cfab70a5ff84560aa9b (patch)
tree078d9d4e833697cdf735128ee7e29d28b5e8f096 /src/frontEnd/Application.py
parent622f2dee480c1e352b0c2821c63fe443d8419ab8 (diff)
downloadeSim-cc2082a63d52bf7181902cfab70a5ff84560aa9b.tar.gz
eSim-cc2082a63d52bf7181902cfab70a5ff84560aa9b.tar.bz2
eSim-cc2082a63d52bf7181902cfab70a5ff84560aa9b.zip
Subject: Added cd to project directory in xterm.
Description: This is done in order to avoid copying plot data file to project And also to make sure ngspice project get access its library used in netlist
Diffstat (limited to 'src/frontEnd/Application.py')
-rwxr-xr-xsrc/frontEnd/Application.py23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index 10ee598f..e4bddac9 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -161,29 +161,16 @@ class Application(QtGui.QMainWindow):
if self.projDir != None:
self.obj_Mainview.obj_dockarea.ngspiceEditor(self.projDir)
time.sleep(2) #Need permanent solution
+ #Calling Python Plotting
+
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")
- #Calling Python Plotting
- try:
- self.obj_Mainview.obj_dockarea.plottingEditor()
- except Exception as e:
- self.msg = QtGui.QErrorMessage(None)
- self.msg.showMessage('Error while opening python plotting.')
- print "Exception:",str(e)
- self.msg.setWindowTitle("Error Message")
-
+ self.obj_Mainview.obj_dockarea.plottingEditor()
except Exception as e:
self.msg = QtGui.QErrorMessage(None)
- self.msg.showMessage('Unable to copy plot data file to project directory.')
+ self.msg.showMessage('Error while opening python plotting Editor.')
print "Exception:",str(e)
self.msg.setWindowTitle("Error Message")
-
-
+
else:
self.msg = QtGui.QErrorMessage()
self.msg.showMessage('Please select the project first. You can either create new project or open existing project')