Added code to create the project management directory, if it doesn't exist.

Mon, 28 Dec 2009 16:34:27 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 28 Dec 2009 16:34:27 +0000
changeset 4
ed9829a5fe55
parent 3
0d9daebf5b8c
child 5
fa319c01b604

Added code to create the project management directory, if it doesn't exist.

Project/Project.py file | annotate | diff | comparison | revisions
diff -r 0d9daebf5b8c -r ed9829a5fe55 Project/Project.py
--- a/Project/Project.py	Mon Dec 28 16:18:43 2009 +0000
+++ b/Project/Project.py	Mon Dec 28 16:34:27 2009 +0000
@@ -2695,6 +2695,11 @@
                     QApplication.restoreOverrideCursor()
                     QApplication.processEvents()
                     
+                    # create the management directory if not present
+                    mgmtDir = self.getProjectManagementDir()
+                    if not os.path.exists(mgmtDir):
+                        os.mkdir(mgmtDir)
+                    
                     # read a user specific project file
                     self.__readUserProperties()
                     

eric ide

mercurial