7835:0835ed67714b | 7836:2f0d208b8137 |
---|---|
1498 "%Y-%m-%d %H:%M:%S") | 1498 "%Y-%m-%d %H:%M:%S") |
1499 installInfo["sudo"] = not os.access( | 1499 installInfo["sudo"] = not os.access( |
1500 installInfo["eric"], os.W_OK) | 1500 installInfo["eric"], os.W_OK) |
1501 with open(installInfoFile, "w") as infoFile: | 1501 with open(installInfoFile, "w") as infoFile: |
1502 json.dump(installInfo, infoFile, indent=2) | 1502 json.dump(installInfo, infoFile, indent=2) |
1503 except EnvironmentError: | 1503 except OSError: |
1504 # ignore this | 1504 # ignore this |
1505 pass | 1505 pass |
1506 else: | 1506 else: |
1507 changed = False | 1507 changed = False |
1508 with open(installInfoFile, "r") as infoFile: | 1508 with open(installInfoFile, "r") as infoFile: |
5006 self.tr( | 5006 self.tr( |
5007 '<p>The file <b>{0}</b> does not exist or' | 5007 '<p>The file <b>{0}</b> does not exist or' |
5008 ' is zero length.</p>') | 5008 ' is zero length.</p>') |
5009 .format(fn)) | 5009 .format(fn)) |
5010 return | 5010 return |
5011 except EnvironmentError: | 5011 except OSError: |
5012 E5MessageBox.critical( | 5012 E5MessageBox.critical( |
5013 self, | 5013 self, |
5014 self.tr('Problem'), | 5014 self.tr('Problem'), |
5015 self.tr( | 5015 self.tr( |
5016 '<p>The file <b>{0}</b> does not exist or' | 5016 '<p>The file <b>{0}</b> does not exist or' |
5076 self.tr( | 5076 self.tr( |
5077 '<p>The file <b>{0}</b> does not exist or' | 5077 '<p>The file <b>{0}</b> does not exist or' |
5078 ' is zero length.</p>') | 5078 ' is zero length.</p>') |
5079 .format(fn)) | 5079 .format(fn)) |
5080 return | 5080 return |
5081 except EnvironmentError: | 5081 except OSError: |
5082 E5MessageBox.critical( | 5082 E5MessageBox.critical( |
5083 self, | 5083 self, |
5084 self.tr('Problem'), | 5084 self.tr('Problem'), |
5085 self.tr( | 5085 self.tr( |
5086 '<p>The file <b>{0}</b> does not exist or' | 5086 '<p>The file <b>{0}</b> does not exist or' |
5246 self.tr( | 5246 self.tr( |
5247 '<p>The file <b>{0}</b> does not exist or' | 5247 '<p>The file <b>{0}</b> does not exist or' |
5248 ' is zero length.</p>') | 5248 ' is zero length.</p>') |
5249 .format(fn)) | 5249 .format(fn)) |
5250 return | 5250 return |
5251 except EnvironmentError: | 5251 except OSError: |
5252 E5MessageBox.critical( | 5252 E5MessageBox.critical( |
5253 self, | 5253 self, |
5254 self.tr('Problem'), | 5254 self.tr('Problem'), |
5255 self.tr( | 5255 self.tr( |
5256 '<p>The file <b>{0}</b> does not exist or' | 5256 '<p>The file <b>{0}</b> does not exist or' |
5302 self.tr( | 5302 self.tr( |
5303 '<p>The file <b>{0}</b> does not exist or' | 5303 '<p>The file <b>{0}</b> does not exist or' |
5304 ' is zero length.</p>') | 5304 ' is zero length.</p>') |
5305 .format(fn)) | 5305 .format(fn)) |
5306 return | 5306 return |
5307 except EnvironmentError: | 5307 except OSError: |
5308 if not ignore: | 5308 if not ignore: |
5309 E5MessageBox.critical( | 5309 E5MessageBox.critical( |
5310 self, | 5310 self, |
5311 self.tr('Problem'), | 5311 self.tr('Problem'), |
5312 self.tr( | 5312 self.tr( |