PluginManager/PluginManager.py

changeset 537
72b32daeb8d6
parent 496
ed1e3f654d0b
child 791
9ec2ac20e54e
equal deleted inserted replaced
536:6d8d39753c82 537:72b32daeb8d6
10 import os 10 import os
11 import sys 11 import sys
12 import imp 12 import imp
13 13
14 from PyQt4.QtCore import * 14 from PyQt4.QtCore import *
15 from PyQt4.QtGui import QPixmap, QMessageBox 15 from PyQt4.QtGui import QPixmap
16
17 from E5Gui import E5MessageBox
16 18
17 from .PluginExceptions import * 19 from .PluginExceptions import *
18 20
19 import UI.PixmapCache 21 import UI.PixmapCache
20 22
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>""")\

eric ide

mercurial