summaryrefslogtreecommitdiff
path: root/src/subcircuit
diff options
context:
space:
mode:
authorrahulp132020-02-21 12:39:52 +0530
committerrahulp132020-02-21 12:39:52 +0530
commit567e3b725fcc9d22e27cfd854a573d3e64deaff1 (patch)
treeabd4d995d5891a1196a7ca421b7d7b33cad75552 /src/subcircuit
parent982b49ef618222af80162aa98c07ab281dec1692 (diff)
downloadeSim-567e3b725fcc9d22e27cfd854a573d3e64deaff1.tar.gz
eSim-567e3b725fcc9d22e27cfd854a573d3e64deaff1.tar.bz2
eSim-567e3b725fcc9d22e27cfd854a573d3e64deaff1.zip
restructured code - pyinstaller
Diffstat (limited to 'src/subcircuit')
-rw-r--r--src/subcircuit/newSub.py2
-rw-r--r--src/subcircuit/openSub.py2
-rw-r--r--src/subcircuit/uploadSub.py10
3 files changed, 8 insertions, 6 deletions
diff --git a/src/subcircuit/newSub.py b/src/subcircuit/newSub.py
index f4b3100c..5e98d24a 100644
--- a/src/subcircuit/newSub.py
+++ b/src/subcircuit/newSub.py
@@ -31,7 +31,7 @@ class NewSub(QtGui.QWidget):
# Checking if Workspace already exist or not
self.schematic_path = (
os.path.join(
- os.path.abspath('..'),
+ os.path.abspath('library'),
'SubcircuitLibrary',
self.create_schematic))
diff --git a/src/subcircuit/openSub.py b/src/subcircuit/openSub.py
index dd6e31ac..6cb4fe3e 100644
--- a/src/subcircuit/openSub.py
+++ b/src/subcircuit/openSub.py
@@ -18,7 +18,7 @@ class openSub(QtGui.QWidget):
def body(self):
self.editfile = str(
QtGui.QFileDialog.getExistingDirectory(
- None, "Open File", "../SubcircuitLibrary"))
+ None, "Open File", "library/SubcircuitLibrary"))
if self.editfile:
self.obj_Appconfig = Appconfig()
self.obj_Appconfig.current_subcircuit['SubcircuitName'] \
diff --git a/src/subcircuit/uploadSub.py b/src/subcircuit/uploadSub.py
index 4bb8df34..25a6e7d4 100644
--- a/src/subcircuit/uploadSub.py
+++ b/src/subcircuit/uploadSub.py
@@ -7,9 +7,9 @@ import shutil
class UploadSub(QtGui.QWidget):
"""
- This class contain function for ulaoding subcircuits
- in Subcircuit library present in src folder.
- A folder is created in src/SubcircuitLibrary
+ This class contain function for uploading subcircuits
+ in SubcircuitLibrary present in src folder.
+ A folder is created in library/SubcircuitLibrary
and desired file is moved to that folder.
"""
@@ -64,7 +64,9 @@ class UploadSub(QtGui.QWidget):
return
subcircuit_path = os.path.join(
- os.path.abspath('..'), 'SubcircuitLibrary', create_subcircuit)
+ os.path.abspath('library'),
+ 'SubcircuitLibrary', create_subcircuit
+ )
reply = self.obj_validation.validateNewproj(subcircuit_path)