From d28149edf624ad567c32eb67f2c0ca8232dc4d0c Mon Sep 17 00:00:00 2001 From: wgw Date: Fri, 29 Feb 2008 22:32:47 -0600 Subject: [PATCH] shortened module name written to debug.txt Was: plugins.video.transcode.97 [select_aspect] aspect169: True Now: transcode.97 [select_aspect] aspect169: True --- debug.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debug.py b/debug.py index 2e65f7a..0194d1b 100644 --- a/debug.py +++ b/debug.py @@ -5,7 +5,8 @@ p = os.path.dirname(__file__) def debug_write(srcMod, fnAttr, data): if config.getDebug(): debug_out = [] - debug_out.append(srcMod+'.'+fnAttr[1]+' ['+fnAttr[0]+'] ') + modname=srcMod.split('.')[-1] + debug_out.append(modname+'.'+fnAttr[1]+' ['+fnAttr[0]+'] ') for x in data: debug_out.append(str(x)) fdebug = open('debug.txt', 'a') -- 2.11.4.GIT