Project/Project.py

changeset 6303
ec9ebaf206fb
parent 6291
94e0e688dcad
child 6352
4bdc6503df81
diff -r 8bef84b53fbe -r ec9ebaf206fb Project/Project.py
--- a/Project/Project.py	Mon May 21 22:16:21 2018 +0200
+++ b/Project/Project.py	Wed May 23 19:36:11 2018 +0200
@@ -3452,9 +3452,15 @@
         @return path of the management directory (string)
         """
         if Utilities.isWindowsPlatform():
-            return os.path.join(self.ppath, "_eric6project")
-        else:
-            return os.path.join(self.ppath, ".eric6project")
+            # migrate the old project management directory ( < v18.06)
+            oldDir = os.path.join(self.ppath, "_eric6project")
+            if os.path.exists(oldDir):
+                os.rename(
+                    oldDir,
+                    os.path.join(self.ppath, ".eric6project")
+                )
+        
+        return os.path.join(self.ppath, ".eric6project")
         
     def createProjectManagementDir(self):
         """

eric ide

mercurial