src/eric7/eric7_ide.py

branch
eric7
changeset 10926
9ef616cd220d
parent 10789
d3fa6a6b919e
child 10928
46651e194fbe
equal deleted inserted replaced
10925:22c3928a1ab5 10926:9ef616cd220d
189 mainWindow = None 189 mainWindow = None
190 splash = None 190 splash = None
191 inMainLoop = False 191 inMainLoop = False
192 app = None 192 app = None
193 193
194 from eric7 import Globals 194 from eric7 import EricUtilities
195 195
196 if args.config: 196 if args.config:
197 Globals.setConfigDir(args.config) 197 EricUtilities.setConfigDir(args.config)
198 198
199 if args.debug: 199 if args.debug:
200 logging.basicConfig( 200 logging.basicConfig(
201 filename=os.path.join(Globals.getConfigDir(), "eric7_debug.txt"), 201 filename=os.path.join(EricUtilities.getConfigDir(), "eric7_debug.txt"),
202 filemode="w", 202 filemode="w",
203 format="[%(asctime)s] %(levelname)s: %(name)s:%(lineno)d - %(message)s", 203 format="[%(asctime)s] %(levelname)s: %(name)s:%(lineno)d - %(message)s",
204 level=logging.DEBUG, 204 level=logging.DEBUG,
205 ) 205 )
206 206
244 @param excValue exception value 244 @param excValue exception value
245 @type Exception 245 @type Exception
246 @param tracebackobj traceback object 246 @param tracebackobj traceback object
247 @type Traceback 247 @type Traceback
248 """ 248 """
249 from eric7 import Globals, Utilities 249 from eric7 import EricUtilities, Utilities
250 from eric7.UI.Info import BugAddress 250 from eric7.UI.Info import BugAddress
251 251
252 # Workaround for a strange issue with QScintilla 252 # Workaround for a strange issue with QScintilla
253 if str(excValue) == "unable to convert a QVariant back to a Python object": 253 if str(excValue) == "unable to convert a QVariant back to a Python object":
254 return 254 return
255 255
256 separator = "-" * 80 256 separator = "-" * 80
257 logFile = os.path.join(Globals.getConfigDir(), "eric7_error.log") 257 logFile = os.path.join(EricUtilities.getConfigDir(), "eric7_error.log")
258 notice = ( 258 notice = (
259 """An unhandled exception occurred. Please report the problem\n""" 259 """An unhandled exception occurred. Please report the problem\n"""
260 """using the error reporting dialog or via email to <{0}>.\n""" 260 """using the error reporting dialog or via email to <{0}>.\n"""
261 """A log has been written to "{1}".\n\nError information:\n""".format( 261 """A log has been written to "{1}".\n\nError information:\n""".format(
262 BugAddress, logFile 262 BugAddress, logFile

eric ide

mercurial