src/eric7/Project/Project.py

branch
eric7-maintenance
changeset 10174
6aac1022f330
parent 10148
31ba20629af4
parent 10154
d833c6a8c41f
child 10272
7ae72d1df070
equal deleted inserted replaced
10149:b8ad1f2d1b43 10174:6aac1022f330
572 "EOL": -1, 572 "EOL": -1,
573 "DOCSTRING": "", 573 "DOCSTRING": "",
574 "TESTING_FRAMEWORK": "", 574 "TESTING_FRAMEWORK": "",
575 "LICENSE": "", 575 "LICENSE": "",
576 "EMBEDDED_VENV": False, 576 "EMBEDDED_VENV": False,
577 "SOURCESDIR": "",
577 } 578 }
578 for category in self.__fileCategoriesRepository: 579 for category in self.__fileCategoriesRepository:
579 self.__pdata[category] = [] 580 self.__pdata[category] = []
580 581
581 self.__initDebugProperties() 582 self.__initDebugProperties()
605 @rtype Any 606 @rtype Any
606 """ 607 """
607 if dataKey is None: 608 if dataKey is None:
608 return copy.deepcopy(self.__pdata) 609 return copy.deepcopy(self.__pdata)
609 610
610 try: 611 return self.__pdata.get(dataKey, default)
611 return self.__pdata[dataKey]
612 except KeyError:
613 return default
614 612
615 def setProjectData(self, data, dataKey=None, setDirty=True): 613 def setProjectData(self, data, dataKey=None, setDirty=True):
616 """ 614 """
617 Public method to set data associated with the given data key in the project 615 Public method to set data associated with the given data key in the project
618 dictionary. 616 dictionary.

eric ide

mercurial