From 61100f7773e39f7392da6f73c59703dd36f437e0 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Sun, 1 Nov 2015 20:09:35 +0200 Subject: g-ir-tool-template: Fix a coding error that hooks up pdb in any build A condition was supposed to test if GI_SCANNER_DEBUG environment variable is unset or empty, but instead always evaluated to true. This results in any build pausing in pdb whenever an uncaught exception occurs in a g-ir-* tool. https://bugzilla.gnome.org/show_bug.cgi?id=757443 --- tools/g-ir-tool-template.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/g-ir-tool-template.in b/tools/g-ir-tool-template.in index f80730ec..edc68a4c 100644 --- a/tools/g-ir-tool-template.in +++ b/tools/g-ir-tool-template.in @@ -31,9 +31,9 @@ if sys.version_info.major < 3: else: import builtins -debug = os.getenv('GI_SCANNER_DEBUG', '').split(',') +debug = os.getenv('GI_SCANNER_DEBUG') if debug: - if 'pydevd' in debug: + if 'pydevd' in debug.split(','): # http://pydev.org/manual_adv_remote_debugger.html pydevdpath = os.getenv('PYDEVDPATH', None) if pydevdpath is not None and os.path.isdir(pydevdpath): -- cgit v1.2.1