diff options
-rw-r--r-- | src/frontEnd/Workspace.py | 2 | ||||
-rw-r--r-- | src/projManagement/openProject.py | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/frontEnd/Workspace.py b/src/frontEnd/Workspace.py index 47d26d9b..8727e799 100644 --- a/src/frontEnd/Workspace.py +++ b/src/frontEnd/Workspace.py @@ -108,7 +108,7 @@ class Workspace(QtGui.QWidget): def browseLocation(self): print "Browse Location called" - self.workspace_directory = QtGui.QFileDialog.getExistingDirectory() + self.workspace_directory = QtGui.QFileDialog.getExistingDirectory(self, "open","/home") print "Path file :", self.workspace_directory self.worspace_loc.setText(self.workspace_directory)
\ No newline at end of file diff --git a/src/projManagement/openProject.py b/src/projManagement/openProject.py index a5342901..97e851e8 100644 --- a/src/projManagement/openProject.py +++ b/src/projManagement/openProject.py @@ -33,8 +33,10 @@ class OpenProjectInfo(QtGui.QWidget): self.obj_validation = Validation() def body(self): - self.projDir = QtGui.QFileDialog.getExistingDirectory() - + self.obj_Appconfig = Appconfig() + self.openDir = self.obj_Appconfig.default_workspace["workspace"] + #print "default workspace is now 1", self.openDir + self.projDir=QtGui.QFileDialog.getExistingDirectory(self,"open",self.openDir) if self.obj_validation.validateOpenproj(self.projDir) == True: print "Pass open project test" self.obj_Appconfig = Appconfig() |