From 0b81629779f70edf27b77939a3b291ec1ea35102 Mon Sep 17 00:00:00 2001 From: Benedikt Tutzer Date: Thu, 25 Oct 2018 16:19:22 +0200 Subject: changed dlopen flags to support plugins --- __init__.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 __init__.py (limited to '__init__.py') diff --git a/__init__.py b/__init__.py new file mode 100644 index 000000000..118ba306b --- /dev/null +++ b/__init__.py @@ -0,0 +1,3 @@ +import os +import sys +sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL) -- cgit v1.2.3 From 5c59429893b24ff539c65172066a6f343d3dc28e Mon Sep 17 00:00:00 2001 From: Benedikt Tutzer Date: Thu, 25 Oct 2018 16:32:28 +0200 Subject: added all variable in __init__.py to allow importing of the whole module --- __init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to '__init__.py') diff --git a/__init__.py b/__init__.py index 118ba306b..330fd6d86 100644 --- a/__init__.py +++ b/__init__.py @@ -1,3 +1,5 @@ import os import sys sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL) + +__all__ = ["libyosys"] -- cgit v1.2.3