944 downloadDir = self.__defaultDownloadDir |
946 downloadDir = self.__defaultDownloadDir |
945 if not os.path.exists(downloadDir): |
947 if not os.path.exists(downloadDir): |
946 try: |
948 try: |
947 os.mkdir(downloadDir, 0o755) |
949 os.mkdir(downloadDir, 0o755) |
948 except (OSError, IOError) as err: |
950 except (OSError, IOError) as err: |
949 QMessageBox.critical(self.__ui, |
951 E5MessageBox.critical(self.__ui, |
950 self.trUtf8("Plugin Manager Error"), |
952 self.trUtf8("Plugin Manager Error"), |
951 self.trUtf8("""<p>The plugin download directory <b>{0}</b> """ |
953 self.trUtf8("""<p>The plugin download directory <b>{0}</b> """ |
952 """could not be created. Please configure it """ |
954 """could not be created. Please configure it """ |
953 """via the configuration dialog.</p>""" |
955 """via the configuration dialog.</p>""" |
954 """<p>Reason: {1}</p>""")\ |
956 """<p>Reason: {1}</p>""")\ |