7819:d0e9c4cb2aa0 | 7853:35dcac32984a |
---|---|
1486 "%Y-%m-%d %H:%M:%S") | 1486 "%Y-%m-%d %H:%M:%S") |
1487 installInfo["sudo"] = not os.access( | 1487 installInfo["sudo"] = not os.access( |
1488 installInfo["eric"], os.W_OK) | 1488 installInfo["eric"], os.W_OK) |
1489 with open(installInfoFile, "w") as infoFile: | 1489 with open(installInfoFile, "w") as infoFile: |
1490 json.dump(installInfo, infoFile, indent=2) | 1490 json.dump(installInfo, infoFile, indent=2) |
1491 except EnvironmentError: | 1491 except OSError: |
1492 # ignore this | 1492 # ignore this |
1493 pass | 1493 pass |
1494 else: | 1494 else: |
1495 changed = False | 1495 changed = False |
1496 with open(installInfoFile, "r") as infoFile: | 1496 with open(installInfoFile, "r") as infoFile: |
4994 self.tr( | 4994 self.tr( |
4995 '<p>The file <b>{0}</b> does not exist or' | 4995 '<p>The file <b>{0}</b> does not exist or' |
4996 ' is zero length.</p>') | 4996 ' is zero length.</p>') |
4997 .format(fn)) | 4997 .format(fn)) |
4998 return | 4998 return |
4999 except EnvironmentError: | 4999 except OSError: |
5000 E5MessageBox.critical( | 5000 E5MessageBox.critical( |
5001 self, | 5001 self, |
5002 self.tr('Problem'), | 5002 self.tr('Problem'), |
5003 self.tr( | 5003 self.tr( |
5004 '<p>The file <b>{0}</b> does not exist or' | 5004 '<p>The file <b>{0}</b> does not exist or' |
5064 self.tr( | 5064 self.tr( |
5065 '<p>The file <b>{0}</b> does not exist or' | 5065 '<p>The file <b>{0}</b> does not exist or' |
5066 ' is zero length.</p>') | 5066 ' is zero length.</p>') |
5067 .format(fn)) | 5067 .format(fn)) |
5068 return | 5068 return |
5069 except EnvironmentError: | 5069 except OSError: |
5070 E5MessageBox.critical( | 5070 E5MessageBox.critical( |
5071 self, | 5071 self, |
5072 self.tr('Problem'), | 5072 self.tr('Problem'), |
5073 self.tr( | 5073 self.tr( |
5074 '<p>The file <b>{0}</b> does not exist or' | 5074 '<p>The file <b>{0}</b> does not exist or' |
5234 self.tr( | 5234 self.tr( |
5235 '<p>The file <b>{0}</b> does not exist or' | 5235 '<p>The file <b>{0}</b> does not exist or' |
5236 ' is zero length.</p>') | 5236 ' is zero length.</p>') |
5237 .format(fn)) | 5237 .format(fn)) |
5238 return | 5238 return |
5239 except EnvironmentError: | 5239 except OSError: |
5240 E5MessageBox.critical( | 5240 E5MessageBox.critical( |
5241 self, | 5241 self, |
5242 self.tr('Problem'), | 5242 self.tr('Problem'), |
5243 self.tr( | 5243 self.tr( |
5244 '<p>The file <b>{0}</b> does not exist or' | 5244 '<p>The file <b>{0}</b> does not exist or' |
5290 self.tr( | 5290 self.tr( |
5291 '<p>The file <b>{0}</b> does not exist or' | 5291 '<p>The file <b>{0}</b> does not exist or' |
5292 ' is zero length.</p>') | 5292 ' is zero length.</p>') |
5293 .format(fn)) | 5293 .format(fn)) |
5294 return | 5294 return |
5295 except EnvironmentError: | 5295 except OSError: |
5296 if not ignore: | 5296 if not ignore: |
5297 E5MessageBox.critical( | 5297 E5MessageBox.critical( |
5298 self, | 5298 self, |
5299 self.tr('Problem'), | 5299 self.tr('Problem'), |
5300 self.tr( | 5300 self.tr( |