Hook -d up to terminatorlib.config.debug properly. Closes LP #243753

This commit is contained in:
Chris Jones 2008-06-28 21:20:49 +01:00
parent ffdbac8ad2
commit f92cb72a6a
4 changed files with 8 additions and 3 deletions

View File

@ -37,7 +37,8 @@ except:
import pwd import pwd
# import some useful functions # import some useful functions
from terminatorlib.config import dbg, err from terminatorlib.config import dbg, err, debug
import terminatorlib.config
# import gtk libs # import gtk libs
# check just in case anyone runs it on a non-gnome system. # check just in case anyone runs it on a non-gnome system.
@ -95,6 +96,9 @@ if __name__ == '__main__':
print "%s %s"%(APP_NAME, APP_VERSION) print "%s %s"%(APP_NAME, APP_VERSION)
sys.exit (0) sys.exit (0)
if options.debug:
terminatorlib.config.debug = True
command = [] command = []
if (options.command): if (options.command):
command.append (options.command) command.append (options.command)

View File

@ -43,6 +43,7 @@ debug = False
def dbg (log = ""): def dbg (log = ""):
if debug: if debug:
print >> sys.stderr, log print >> sys.stderr, log
def err (log = ""): def err (log = ""):
print >> sys.stderr, log print >> sys.stderr, log

View File

@ -23,7 +23,7 @@ from terminatorlib.version import *
# import our configuration loader # import our configuration loader
from terminatorlib import config from terminatorlib import config
from terminatorlib.config import dbg, err from terminatorlib.config import dbg, err, debug
#import TerminatorTerm #import TerminatorTerm
from terminatorlib.terminatorterm import TerminatorTerm from terminatorlib.terminatorterm import TerminatorTerm

View File

@ -24,7 +24,7 @@ from terminatorlib.version import *
# import our configuration loader # import our configuration loader
from terminatorlib import config from terminatorlib import config
from terminatorlib.config import dbg, err from terminatorlib.config import dbg, err, debug
#import encoding list #import encoding list
from terminatorlib.encoding import TerminatorEncoding from terminatorlib.encoding import TerminatorEncoding