aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-07-08 18:24:16 +0200
committerTristan Gingold <tgingold@free.fr>2019-07-08 18:27:03 +0200
commit363010d1a9aa876aa94c81bf56b7db5bff0e3b15 (patch)
tree213e266cc6dfac2aa08b3f3436c3324c91a80dbe /python
parentc904411e863ec9b9d82744cf1ee6d4b1d0dde9d3 (diff)
downloadghdl-363010d1a9aa876aa94c81bf56b7db5bff0e3b15.tar.gz
ghdl-363010d1a9aa876aa94c81bf56b7db5bff0e3b15.tar.bz2
ghdl-363010d1a9aa876aa94c81bf56b7db5bff0e3b15.zip
python: add errorout_console, disp_config.
Diffstat (limited to 'python')
-rw-r--r--python/libghdl/__init__.py3
-rw-r--r--python/libghdl/thin/errorout_console.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/python/libghdl/__init__.py b/python/libghdl/__init__.py
index 0ac38694a..92a5ba1f0 100644
--- a/python/libghdl/__init__.py
+++ b/python/libghdl/__init__.py
@@ -85,6 +85,9 @@ def analyze_file(fname):
return libghdl.libghdl__analyze_file(*_to_char_p(fname))
+def disp_config():
+ return libghdl.ghdllocal__disp_config_prefixes()
+
if False:
_prefix = os.environ.get("LIBGHDL_PREFIX") or '--PREFIX=%s' % join(dirname(_libghdl_path), 'ghdl')
# print('ghdl prefix: {}'.format(_prefix))
diff --git a/python/libghdl/thin/errorout_console.py b/python/libghdl/thin/errorout_console.py
new file mode 100644
index 000000000..877165b70
--- /dev/null
+++ b/python/libghdl/thin/errorout_console.py
@@ -0,0 +1,3 @@
+from libghdl import libghdl
+
+Install_Handler = libghdl.errorout__console__install_handler