summaryrefslogtreecommitdiff
path: root/src/projManagement/openProject.py
diff options
context:
space:
mode:
authornilshah982019-05-28 00:27:24 +0530
committernilshah982019-06-07 11:03:16 +0530
commit818c3f2d43914940ba3cdf580c5a6f26a8200834 (patch)
tree349e117543cd25c60bda36fcc555fb9b9b70b9ee /src/projManagement/openProject.py
parent48196556e90f5566e8d42088f596a5fc7ae8e918 (diff)
downloadeSim-818c3f2d43914940ba3cdf580c5a6f26a8200834.tar.gz
eSim-818c3f2d43914940ba3cdf580c5a6f26a8200834.tar.bz2
eSim-818c3f2d43914940ba3cdf580c5a6f26a8200834.zip
projectManagement, ngspicetoModelica, subcircuit made pep8 compliant
Diffstat (limited to 'src/projManagement/openProject.py')
-rw-r--r--src/projManagement/openProject.py24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/projManagement/openProject.py b/src/projManagement/openProject.py
index 58a6be0a..6cdcbb38 100644
--- a/src/projManagement/openProject.py
+++ b/src/projManagement/openProject.py
@@ -1,5 +1,5 @@
-#=========================================================================
+# =========================================================================
#
# FILE: openProject.py
#
@@ -15,7 +15,7 @@
# ORGANIZATION: eSim team at FOSSEE, IIT Bombay.
# CREATED: Wednesday 12 February 2015
# REVISION: ---
-#=========================================================================
+# =========================================================================
from PyQt4 import QtGui
from .Validation import Validation
@@ -39,7 +39,7 @@ class OpenProjectInfo(QtGui.QWidget):
self.projDir = QtGui.QFileDialog.getExistingDirectory(
self, "open", self.openDir)
- if self.obj_validation.validateOpenproj(self.projDir) == True:
+ if self.obj_validation.validateOpenproj(self.projDir):
self.obj_Appconfig.current_project['ProjectName'] = str(
self.projDir)
if os.path.isdir(self.projDir):
@@ -47,8 +47,10 @@ class OpenProjectInfo(QtGui.QWidget):
for dirs, subdirs, filelist in os.walk(
self.obj_Appconfig.current_project["ProjectName"]):
- directory = dirs
- files = filelist
+ # directory = dirs
+ # files = filelist
+ # above 'directory' and 'files' variable never used
+ pass
self.obj_Appconfig.project_explorer[dirs] = filelist
json.dump(
self.obj_Appconfig.project_explorer, open(
@@ -59,9 +61,15 @@ class OpenProjectInfo(QtGui.QWidget):
else:
self.obj_Appconfig.print_error(
- "The project doesn't contain .proj file. Please select the proper directory else you won't be able to perform any operation")
- reply = QtGui.QMessageBox.critical(None, "Error Message", '''<b> Error: The project doesn't contain .proj file.</b><br/>
- <b>Please select the proper project directory else you won't be able to perform any operation</b>''', QtGui.QMessageBox.Ok | QtGui.QMessageBox.Cancel)
+ "The project doesn't contain .proj file. Please select the"
+ + "proper directory else you won't be able to perform any"
+ + "operation")
+ reply = QtGui.QMessageBox.critical(None, "Error Message",
+ '''<b>Error: The project doesn't contain .proj file.</b><br/>
+ <b>Please select the proper project directory else you won't
+ be able to perform any operation</b>''',
+ QtGui.QMessageBox.Ok |
+ QtGui.QMessageBox.Cancel)
if reply == QtGui.QMessageBox.Ok:
self.body()