Hook -d up to terminatorlib.config.debug properly. Closes LP #243753
This commit is contained in:
parent
ffdbac8ad2
commit
f92cb72a6a
|
@ -37,7 +37,8 @@ except:
|
|||
import pwd
|
||||
|
||||
# import some useful functions
|
||||
from terminatorlib.config import dbg, err
|
||||
from terminatorlib.config import dbg, err, debug
|
||||
import terminatorlib.config
|
||||
|
||||
# import gtk libs
|
||||
# check just in case anyone runs it on a non-gnome system.
|
||||
|
@ -94,6 +95,9 @@ if __name__ == '__main__':
|
|||
if options.version:
|
||||
print "%s %s"%(APP_NAME, APP_VERSION)
|
||||
sys.exit (0)
|
||||
|
||||
if options.debug:
|
||||
terminatorlib.config.debug = True
|
||||
|
||||
command = []
|
||||
if (options.command):
|
||||
|
|
|
@ -43,6 +43,7 @@ debug = False
|
|||
def dbg (log = ""):
|
||||
if debug:
|
||||
print >> sys.stderr, log
|
||||
|
||||
def err (log = ""):
|
||||
print >> sys.stderr, log
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ from terminatorlib.version import *
|
|||
|
||||
# import our configuration loader
|
||||
from terminatorlib import config
|
||||
from terminatorlib.config import dbg, err
|
||||
from terminatorlib.config import dbg, err, debug
|
||||
|
||||
#import TerminatorTerm
|
||||
from terminatorlib.terminatorterm import TerminatorTerm
|
||||
|
|
|
@ -24,7 +24,7 @@ from terminatorlib.version import *
|
|||
|
||||
# import our configuration loader
|
||||
from terminatorlib import config
|
||||
from terminatorlib.config import dbg, err
|
||||
from terminatorlib.config import dbg, err, debug
|
||||
|
||||
#import encoding list
|
||||
from terminatorlib.encoding import TerminatorEncoding
|
||||
|
|
Loading…
Reference in New Issue