src/eric7/Project/ProjectFile.py

branch
eric7
changeset 9527
8601253e7633
parent 9514
2b104ad132a4
child 9531
155b2646799a
equal deleted inserted replaced
9526:c2fe17f95b56 9527:8601253e7633
7 Module implementing a class representing the project JSON file. 7 Module implementing a class representing the project JSON file.
8 """ 8 """
9 9
10 import contextlib 10 import contextlib
11 11
12 ##import copy
13 import json 12 import json
14 import time 13 import time
15 import typing 14 import typing
16 15
17 from PyQt6.QtCore import QObject 16 from PyQt6.QtCore import QObject
141 ) 140 )
142 return False 141 return False
143 142
144 # modify paths to contain native separators 143 # modify paths to contain native separators
145 for key in self.__project.getFileCategories() + ["TRANSLATIONEXCEPTIONS"]: 144 for key in self.__project.getFileCategories() + ["TRANSLATIONEXCEPTIONS"]:
146 ##(
147 ##"SOURCES",
148 ##"FORMS",
149 ##"TRANSLATIONS",
150 ##"TRANSLATIONEXCEPTIONS",
151 ##"RESOURCES",
152 ##"INTERFACES",
153 ##"PROTOCOLS",
154 ##"OTHERS",
155 ##):
156 with contextlib.suppress(KeyError): 145 with contextlib.suppress(KeyError):
157 projectDict["project"][key] = [ 146 projectDict["project"][key] = [
158 Utilities.toNativeSeparators(f) for f in projectDict["project"][key] 147 Utilities.toNativeSeparators(f) for f in projectDict["project"][key]
159 ] 148 ]
160 for key in ( 149 for key in (

eric ide

mercurial