From 4b09580f9b545f1b7dec71f008461520c8b10103 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 26 Jun 2019 19:09:01 +0200 Subject: python: refine the result of set_option. --- python/libghdl/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/libghdl') diff --git a/python/libghdl/__init__.py b/python/libghdl/__init__.py index 2ae52a4a2..0ac38694a 100644 --- a/python/libghdl/__init__.py +++ b/python/libghdl/__init__.py @@ -73,7 +73,8 @@ def _to_char_p(arg): def set_option(opt): - return libghdl.libghdl__set_option(*_to_char_p(opt)) + "Set option OPT. Return true iff the option is known and handled" + return libghdl.libghdl__set_option(*_to_char_p(opt)) == 0 def analyze_init(): -- cgit v1.2.3