Project/Project.py

changeset 6303
ec9ebaf206fb
parent 6291
94e0e688dcad
child 6352
4bdc6503df81
equal deleted inserted replaced
6302:8bef84b53fbe 6303:ec9ebaf206fb
3450 Public method to get the path of the management directory. 3450 Public method to get the path of the management directory.
3451 3451
3452 @return path of the management directory (string) 3452 @return path of the management directory (string)
3453 """ 3453 """
3454 if Utilities.isWindowsPlatform(): 3454 if Utilities.isWindowsPlatform():
3455 return os.path.join(self.ppath, "_eric6project") 3455 # migrate the old project management directory ( < v18.06)
3456 else: 3456 oldDir = os.path.join(self.ppath, "_eric6project")
3457 return os.path.join(self.ppath, ".eric6project") 3457 if os.path.exists(oldDir):
3458 os.rename(
3459 oldDir,
3460 os.path.join(self.ppath, ".eric6project")
3461 )
3462
3463 return os.path.join(self.ppath, ".eric6project")
3458 3464
3459 def createProjectManagementDir(self): 3465 def createProjectManagementDir(self):
3460 """ 3466 """
3461 Public method to create the project management directory. 3467 Public method to create the project management directory.
3462 3468

eric ide

mercurial