summaryrefslogtreecommitdiff
path: root/src/subcircuit
diff options
context:
space:
mode:
authoranjalijaiswal082019-06-27 11:07:04 +0530
committeranjalijaiswal082019-06-27 12:43:23 +0530
commit5be7aa383b3982be2ceacfa747e2f2f3a2ea90bc (patch)
treeafb08b62d38cdd3658b3ff166bcd21979b20db07 /src/subcircuit
parent17e8d542ab9cb7c1c91fb2ef7c23ff8d556d4138 (diff)
downloadeSim-5be7aa383b3982be2ceacfa747e2f2f3a2ea90bc.tar.gz
eSim-5be7aa383b3982be2ceacfa747e2f2f3a2ea90bc.tar.bz2
eSim-5be7aa383b3982be2ceacfa747e2f2f3a2ea90bc.zip
Pep8 changes
Diffstat (limited to 'src/subcircuit')
-rw-r--r--src/subcircuit/uploadSub.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/subcircuit/uploadSub.py b/src/subcircuit/uploadSub.py
index a59066a7..dfabea8d 100644
--- a/src/subcircuit/uploadSub.py
+++ b/src/subcircuit/uploadSub.py
@@ -35,19 +35,22 @@ class UploadSub(QtGui.QWidget):
if ok:
projname = (str(text))
create_subcircuit = projname
- subcircuit_path = (os.path.join(os.path.abspath('..'), 'SubcircuitLibrary', create_subcircuit))
+ subcircuit_path = (os.path.join(os.path.abspath('..'),
+ 'SubcircuitLibrary', create_subcircuit))
if subcircuit_path == "":
reply = "NONE"
else:
- reply = self.obj_validation.validateNewproj(str(subcircuit_path))
+ reply = self.obj_validation.validateNewproj(str(
+ subcircuit_path))
if reply == "VALID":
print("Validated: Creating subcircuit directory")
os.mkdir(subcircuit_path)
editfile = str(
QtGui.QFileDialog.getOpenFileName(
- None, "Upload File", os.path.expanduser("~"), (projname + ".sub")))
+ None, "Upload File", os.path.expanduser("~"),
+ (projname + ".sub")))
upload = os.path.basename(editfile)
print("===================")
@@ -64,7 +67,10 @@ class UploadSub(QtGui.QWidget):
subcircuit = (os.path.join(subcircuit_path, upload))
print("Final path of file is " + subcircuit)
print("===================")
- print("Copying file from " + editfile + " to " + subcircuit)
+ print("Copying file from "
+ + editfile
+ + " to "
+ + subcircuit)
print("===================")
shutil.copy(editfile, subcircuit)
else: