From 7634d9609113ef1e887a578b567879de565f2059 Mon Sep 17 00:00:00 2001 From: Thomas Juerges <203795-tjuerges@users.noreply.gitlab.com> Date: Wed, 28 Oct 2020 17:47:35 +0100 Subject: [PATCH] Clean up code --- test/Client.py | 8 +++----- test/MCU_debug_access.py | 5 +---- test/MnC_client.py | 7 ++----- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/test/Client.py b/test/Client.py index 3b3fc04..edc0a9c 100755 --- a/test/Client.py +++ b/test/Client.py @@ -3,12 +3,13 @@ import sys import time import logging +from opcua import Client +from opcua import ua + host = "localhost" port = 62000 -sys.path.insert(0, "..") - Temp_only = True try: @@ -22,9 +23,6 @@ except ImportError: shell = code.InteractiveConsole(vars) shell.interact() -from opcua import Client -from opcua import ua - def datachange_notification(self, node, val, data): print("Python: New data change event", node, val) diff --git a/test/MCU_debug_access.py b/test/MCU_debug_access.py index ae31e39..f2e2120 100755 --- a/test/MCU_debug_access.py +++ b/test/MCU_debug_access.py @@ -8,14 +8,11 @@ import sys import time import logging +from opcua import Client host = "localhost" port = 62000 -sys.path.insert(0, "..") - -from opcua import Client - if __name__ == "__main__": logging.basicConfig(level=logging.WARNING) #INFO ERROR WARNING NOTSET DEBUG diff --git a/test/MnC_client.py b/test/MnC_client.py index 7c54ae3..3258b54 100755 --- a/test/MnC_client.py +++ b/test/MnC_client.py @@ -5,13 +5,12 @@ import sys import time import datetime import logging +from opcua import Client +from opcua import ua host = "localhost" port = 62000 -sys.path.insert(0, "..") - - try: from IPython import embed except ImportError: @@ -23,8 +22,6 @@ except ImportError: shell = code.InteractiveConsole(vars) shell.interact() -from opcua import Client -from opcua import ua class SubHandler(object): -- GitLab