From dec92751265c6f18f2334f4d572efbc6a2db81e4 Mon Sep 17 00:00:00 2001 From: Igor <100174039+kehrazy@users.noreply.github.com> Date: Thu, 11 May 2023 14:50:53 +0300 Subject: [PATCH 1/2] Fix broken `plug` relative import in global `__init__.py` The imported `plug` module was broken, plugs did not work with multiple monitors as they should have been. This was probably due to the black magic class->name->object shenanigans going on in the plug initialization. --- openhtf/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openhtf/__init__.py b/openhtf/__init__.py index 38410c9e8..048b4a911 100644 --- a/openhtf/__init__.py +++ b/openhtf/__init__.py @@ -86,7 +86,7 @@ 'conf', ) -plug = plugs.plug +plug = openhtf.plugs.plug BasePlug = openhtf.core.base_plugs.BasePlug DiagnosesStore = openhtf.core.diagnoses_lib.DiagnosesStore From 0dd1c81cb54223ab0110cfd15e2a46b18ad128ac Mon Sep 17 00:00:00 2001 From: Igor <100174039+kehrazy@users.noreply.github.com> Date: Thu, 11 May 2023 21:09:58 +0300 Subject: [PATCH 2/2] Update __init__.py Resolves the codestyle issues. --- openhtf/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openhtf/__init__.py b/openhtf/__init__.py index 048b4a911..0dd2e3672 100644 --- a/openhtf/__init__.py +++ b/openhtf/__init__.py @@ -16,7 +16,6 @@ import signal import typing -from openhtf import plugs from openhtf.core import phase_executor from openhtf.core import test_record import openhtf.core.base_plugs @@ -29,6 +28,7 @@ import openhtf.core.phase_group import openhtf.core.phase_nodes import openhtf.core.test_descriptor +import openhtf.plugs import openhtf.util from openhtf.util import configuration from openhtf.util import console_output @@ -86,6 +86,7 @@ 'conf', ) +plugs = openhtf.plugs plug = openhtf.plugs.plug BasePlug = openhtf.core.base_plugs.BasePlug