[gobject-introspection] g-ir-tool-template: Fix a coding error that hooks up pdb in any build
- From: Mikhail Zabaluev <mzabaluev src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] g-ir-tool-template: Fix a coding error that hooks up pdb in any build
- Date: Sun, 1 Nov 2015 23:21:21 +0000 (UTC)
commit 61100f7773e39f7392da6f73c59703dd36f437e0
Author: Mikhail Zabaluev <mikhail zabaluev gmail com>
Date: Sun Nov 1 20:09:35 2015 +0200
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tools/g-ir-tool-template.in b/tools/g-ir-tool-template.in
index f80730e..edc68a4 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):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]