diff options
author | Fahim | 2015-05-13 14:24:28 +0530 |
---|---|---|
committer | Fahim | 2015-05-13 14:24:28 +0530 |
commit | 72eb8445138ce31aa1baba29de5807ae8241740e (patch) | |
tree | d73631831d3b030deee868b6100400c9b3104b5d /src/projManagement/openProject.py | |
parent | 37854e4e6e1dfd448bc7fb63e31d750843aa68bc (diff) | |
parent | 3e134d4e2826699656d7b7b4c8edb1f7ba89aed9 (diff) | |
download | eSim-72eb8445138ce31aa1baba29de5807ae8241740e.tar.gz eSim-72eb8445138ce31aa1baba29de5807ae8241740e.tar.bz2 eSim-72eb8445138ce31aa1baba29de5807ae8241740e.zip |
Merge pull request #24 from komalsheth236/master
Project Explorer completed
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" |