add pdb postmortem flag; i18n csv seperators

This commit is contained in:
Damien Elmes 2012-04-24 01:34:59 +09:00
parent c08b561f2f
commit a02ab141ce
2 changed files with 16 additions and 6 deletions

View file

@ -112,15 +112,15 @@ you can enter it here. Use \\t to represent tab."""),
else:
d = self.importer.dialect.delimiter
if d == "\t":
d = "Tab"
d = _("Tab")
elif d == ",":
d = "Comma"
d = _("Comma")
elif d == " ":
d = "Space"
d = _("Space")
elif d == ";":
d = "Semicolon"
d = _("Semicolon")
elif d == ":":
d = "Colon"
d = _("Colon")
else:
d = `d`
if self.importer.delimiter:

View file

@ -3,7 +3,7 @@
# imports are all in this file to make moving to pyside easier in the future
import sip
import sip, os
sip.setapi('QString', 2)
sip.setapi('QVariant', 2)
sip.setapi('QUrl', 2)
@ -17,3 +17,13 @@ def debug():
from pdb import set_trace
pyqtRemoveInputHook()
set_trace()
if os.environ.get("DEBUG"):
import sys, traceback
traceback.print_exc()
def info(type, value, tb):
from PyQt4.QtCore import pyqtRemoveInputHook
pyqtRemoveInputHook()
from pdb import pm
pm()
sys.excepthook = info