From 4aa019362ae4e133995f6d9ba5727207224f9b8e Mon Sep 17 00:00:00 2001 From: anjalijaiswal08 Date: Wed, 26 Jun 2019 03:25:04 +0530 Subject: half commited --- src/subcircuit/uploadSub.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/subcircuit/uploadSub.py b/src/subcircuit/uploadSub.py index 28912fbe..a59066a7 100644 --- a/src/subcircuit/uploadSub.py +++ b/src/subcircuit/uploadSub.py @@ -38,11 +38,11 @@ class UploadSub(QtGui.QWidget): subcircuit_path = (os.path.join(os.path.abspath('..'), 'SubcircuitLibrary', create_subcircuit)) if subcircuit_path == "": - self.reply = "NONE" + reply = "NONE" else: - self.reply = self.obj_validation.validateNewproj(str(subcircuit_path)) + reply = self.obj_validation.validateNewproj(str(subcircuit_path)) - if self.reply == "VALID": + if reply == "VALID": print("Validated: Creating subcircuit directory") os.mkdir(subcircuit_path) editfile = str( @@ -81,7 +81,7 @@ class UploadSub(QtGui.QWidget): print("===================") os.rmdir(subcircuit_path) - elif self.reply == "CHECKEXIST": + elif reply == "CHECKEXIST": print("Project name already exists.") print("==========================") msg = QtGui.QErrorMessage(self) @@ -90,7 +90,7 @@ class UploadSub(QtGui.QWidget): the different name or delete existing project") msg.setWindowTitle("Error Message") - elif self.reply == "CHECKNAME": + elif reply == "CHECKNAME": print("Name can not contain space between them") print("===========================") msg = QtGui.QErrorMessage(self) -- cgit