~epidermis/epidermis/releases

« back to all changes in this revision

Viewing changes to epidermis/debuginfo.py

  • Committer: David D Lowe
  • Date: 2009-05-31 18:58:14 UTC
  • mfrom: (1.1.74 trunk)
  • Revision ID: daviddlowe.flimm@gmail.com-20090531185814-qst7hvqhp2ihr7f9
0.2.4 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    import handy
13
13
    import managepigments
14
14
    import pigments.pigment
15
 
    info = "Debugging information follows:\n"
 
15
    info = "Additional debugging information follows:\n"
16
16
    info += "Epidermis version: %s\n" % const.VERSION
17
 
    info += handy.determine_path() + "\n\n"
 
17
    info += "debuginfo.py path: " + __file__ + "\n\n"
18
18
    
19
19
    info += "Python version: %s\n" % sys.version
20
20
    
32
32
        info += "gconf:%s = '%s'\n" % (string, client.get_string(string))
33
33
    
34
34
    # pigments
35
 
    info += "examining installed pigments, only pigments which don't return STATE_INSTALLED are listed\n"
 
35
    info += "\nexamining installed pigments, only pigments which don't return STATE_INSTALLED are listed\n"
36
36
    pigms = {}
37
37
    for pt in const.PIGMENT_TYPES:
38
38
        try:
39
39
            pigms[pt], excps = managepigments.find_pigments(pt)
40
40
            for exc in excps:
41
 
                info += traceback.format_exception(exc[0], exc[1], exc[2]) + "\n"
 
41
                info += "\n".join(traceback.format_exception(exc[0], exc[1], exc[2])) + "\n"
42
42
            for pigment in pigms[pt]:
43
43
                if pigment.get_state() != pigments.pigment.STATE_INSTALLED:
44
44
                    info += "%s is %s\n" %(str(pigment), pigment.debug_get_state_str())