summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/frontEnd/Workspace.py2
-rw-r--r--src/projManagement/openKicad.pycbin1189 -> 0 bytes
-rw-r--r--src/projManagement/openProject.py6
3 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/openKicad.pyc b/src/projManagement/openKicad.pyc
deleted file mode 100644
index 04f934d3..00000000
--- a/src/projManagement/openKicad.pyc
+++ /dev/null
Binary files differ
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()