src/eric7/Project/ProjectFile.py

branch
eric7
changeset 10459
5c5ed40d533d
parent 10439
21c28b0f9e41
child 10596
ea35c92a3c7c
equal deleted inserted replaced
10458:2074b8393649 10459:5c5ed40d533d
88 projectDict["project"][key] = FileSystemUtilities.fromNativeSeparators( 88 projectDict["project"][key] = FileSystemUtilities.fromNativeSeparators(
89 projectDict["project"][key] 89 projectDict["project"][key]
90 ) 90 )
91 91
92 try: 92 try:
93 jsonString = json.dumps(projectDict, indent=2, sort_keys=True) 93 jsonString = json.dumps(projectDict, indent=2, sort_keys=True) + "\n"
94 with open(filename, "w", newline="") as f: 94 with open(filename, "w", newline="") as f:
95 f.write(jsonString) 95 f.write(jsonString)
96 except (OSError, TypeError) as err: 96 except (OSError, TypeError) as err:
97 with EricOverridenCursor(): 97 with EricOverridenCursor():
98 EricMessageBox.critical( 98 EricMessageBox.critical(

eric ide

mercurial