summaryrefslogtreecommitdiff
path: root/src/projManagement
diff options
context:
space:
mode:
authorFahim2015-05-13 14:24:28 +0530
committerFahim2015-05-13 14:24:28 +0530
commit72eb8445138ce31aa1baba29de5807ae8241740e (patch)
treed73631831d3b030deee868b6100400c9b3104b5d /src/projManagement
parent37854e4e6e1dfd448bc7fb63e31d750843aa68bc (diff)
parent3e134d4e2826699656d7b7b4c8edb1f7ba89aed9 (diff)
downloadeSim-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')
-rw-r--r--src/projManagement/Kicad.pycbin4302 -> 4309 bytes
-rw-r--r--src/projManagement/Validation.pycbin2397 -> 2404 bytes
-rw-r--r--src/projManagement/Worker.pycbin1501 -> 1507 bytes
-rw-r--r--src/projManagement/__init__.pycbin144 -> 145 bytes
-rw-r--r--src/projManagement/newProject.py2
-rw-r--r--src/projManagement/newProject.pycbin2966 -> 2983 bytes
-rw-r--r--src/projManagement/openProject.py13
-rw-r--r--src/projManagement/openProject.pycbin1767 -> 2136 bytes
8 files changed, 12 insertions, 3 deletions
diff --git a/src/projManagement/Kicad.pyc b/src/projManagement/Kicad.pyc
index 3cb015de..b1bfec10 100644
--- a/src/projManagement/Kicad.pyc
+++ b/src/projManagement/Kicad.pyc
Binary files differ
diff --git a/src/projManagement/Validation.pyc b/src/projManagement/Validation.pyc
index a1bbf393..a32213f0 100644
--- a/src/projManagement/Validation.pyc
+++ b/src/projManagement/Validation.pyc
Binary files differ
diff --git a/src/projManagement/Worker.pyc b/src/projManagement/Worker.pyc
index 4f8652b7..af65ebc6 100644
--- a/src/projManagement/Worker.pyc
+++ b/src/projManagement/Worker.pyc
Binary files differ
diff --git a/src/projManagement/__init__.pyc b/src/projManagement/__init__.pyc
index 2f39d337..62020210 100644
--- a/src/projManagement/__init__.pyc
+++ b/src/projManagement/__init__.pyc
Binary files differ
diff --git a/src/projManagement/newProject.py b/src/projManagement/newProject.py
index 77c583d3..22f2c60c 100644
--- a/src/projManagement/newProject.py
+++ b/src/projManagement/newProject.py
@@ -77,7 +77,7 @@ class NewProjectInfo(QtGui.QWidget):
self.obj_appconfig.project_explorer[self.projDir] = newprojlist
json.dump(self.obj_appconfig.project_explorer, open(self.obj_appconfig.dictPath,'w'))
-
+ return self.projDir, newprojlist
elif self.reply == "CHECKEXIST":
#print "Project already exist"
diff --git a/src/projManagement/newProject.pyc b/src/projManagement/newProject.pyc
index 2672dd49..bbb9924c 100644
--- a/src/projManagement/newProject.pyc
+++ b/src/projManagement/newProject.pyc
Binary files differ
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"
diff --git a/src/projManagement/openProject.pyc b/src/projManagement/openProject.pyc
index 49ac9b28..395a8437 100644
--- a/src/projManagement/openProject.pyc
+++ b/src/projManagement/openProject.pyc
Binary files differ