diff options
author | komalsheth236 | 2015-05-13 13:36:24 +0530 |
---|---|---|
committer | komalsheth236 | 2015-05-13 13:36:24 +0530 |
commit | 3e134d4e2826699656d7b7b4c8edb1f7ba89aed9 (patch) | |
tree | d73631831d3b030deee868b6100400c9b3104b5d /src/projManagement/openProject.py | |
parent | 6a69cbdbb54b99e1b4e27fac4635f8169b6db463 (diff) | |
download | eSim-3e134d4e2826699656d7b7b4c8edb1f7ba89aed9.tar.gz eSim-3e134d4e2826699656d7b7b4c8edb1f7ba89aed9.tar.bz2 eSim-3e134d4e2826699656d7b7b4c8edb1f7ba89aed9.zip |
Project Explorer Compeleted
Diffstat (limited to 'src/projManagement/openProject.py')
-rw-r--r-- | src/projManagement/openProject.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/projManagement/openProject.py b/src/projManagement/openProject.py index 4112810c..83fc1a41 100644 --- a/src/projManagement/openProject.py +++ b/src/projManagement/openProject.py @@ -20,7 +20,8 @@ from PyQt4 import QtGui from Validation import Validation from configuration.Appconfig import Appconfig - +import os +import json class OpenProjectInfo(QtGui.QWidget): @@ -40,7 +41,15 @@ class OpenProjectInfo(QtGui.QWidget): #print "Pass open project test" self.obj_Appconfig = Appconfig() self.obj_Appconfig.current_project['ProjectName'] = str(self.projDir) - + if os.path.isdir(self.projDir): + print "true" + + for dirs, subdirs, filelist in os.walk(self.obj_Appconfig.current_project["ProjectName"]): + directory = dirs + files = filelist + self.obj_Appconfig.project_explorer[dirs] = filelist + json.dump(self.obj_Appconfig.project_explorer, open(self.obj_Appconfig.dictPath,'w')) + return dirs, filelist else: #print "Failed open project test" |