From d2899c9f7f4755655195ae399feeb309bc28fa07 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Fri, 19 Nov 2021 17:12:09 +0100 Subject: [PATCH] Fix import statement. When importing pEp failed, and the program tries to import pEp again, "NameError: name '_pEp' is not defined" was raised. This was caused by "_pEp" not really been imported. --- src/pEp/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pEp/__init__.py b/src/pEp/__init__.py index fb51859..b35067f 100755 --- a/src/pEp/__init__.py +++ b/src/pEp/__init__.py @@ -30,7 +30,7 @@ from ._pEp import * # import the native module into the current namespace because we also need to access the names beginning # with an underscore (of _pEp), but we dont want to import them into this module -import pEp._pEp +from . import _pEp # 3rd party imports from threading import Thread, Barrier