diff options
author | anjalijaiswal08 | 2019-06-27 11:07:04 +0530 |
---|---|---|
committer | anjalijaiswal08 | 2019-06-27 12:43:23 +0530 |
commit | 5be7aa383b3982be2ceacfa747e2f2f3a2ea90bc (patch) | |
tree | afb08b62d38cdd3658b3ff166bcd21979b20db07 /src/subcircuit/uploadSub.py | |
parent | 17e8d542ab9cb7c1c91fb2ef7c23ff8d556d4138 (diff) | |
download | eSim-5be7aa383b3982be2ceacfa747e2f2f3a2ea90bc.tar.gz eSim-5be7aa383b3982be2ceacfa747e2f2f3a2ea90bc.tar.bz2 eSim-5be7aa383b3982be2ceacfa747e2f2f3a2ea90bc.zip |
Pep8 changes
Diffstat (limited to 'src/subcircuit/uploadSub.py')
-rw-r--r-- | src/subcircuit/uploadSub.py | 14 |
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: |